/* Centenar 1926–2026 — Bisericile Penticostale din Iași
   Paper cream + deep burgundy + brass gold, classic serif display. */

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe9db;
  --ink: #3a2f28;
  --ink-muted: #6f6156;
  --wine: #6b1f2a;
  --wine-deep: #2a0f16;
  --gold: #c9a44e;
  --gold-soft: #e6d5a8;
  --gold-dark: #a5853c;
  --line: #e2dccb;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--wine-deep);
  padding: 6rem 1.25rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.75;
  filter: sepia(0.35) saturate(1.08) brightness(0.72) blur(0.5px);
  transform-origin: center center;
  animation: slow-zoom 28s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%,
    rgba(88, 34, 30, 0.3) 0%,
    rgba(43, 19, 18, 0.48) 58%,
    rgba(28, 12, 12, 0.72) 100%);
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(42, 15, 22, 0.1);
  mix-blend-mode: multiply;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12rem;
  background: linear-gradient(to bottom, transparent, rgba(42, 15, 22, 0.7));
}

.hero-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 28rem;
}

.hero-rule {
  margin: 2rem auto 0;
  height: 1px;
  width: 6rem;
  background: rgba(201, 164, 78, 0.4);
}

.hero-verse {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.85);
}
@media (min-width: 640px) { .hero-verse { font-size: 1.25rem; } }

.hero-verse-ref {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(201, 164, 78, 0.7);
}

.hero-date {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
}
@media (min-width: 640px) { .hero-date { font-size: 3rem; } }

.hero-invite {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(247, 243, 234, 0.75);
}

.hero-cue {
  display: inline-flex;
  margin-top: 4rem;
  color: rgba(201, 164, 78, 0.6);
  transition: color 0.3s;
}
.hero-cue:hover { color: var(--gold); }

/* ---------- LAYOUT ---------- */
.container { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; position: relative; }
.container-wide { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; position: relative; }
@media (min-width: 640px) { .container, .container-wide { padding: 0 2rem; } }

/* ---------- SECTION HEAD ---------- */
.section-head { text-align: center; }

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.eyebrow-line {
  height: 1px;
  width: 2rem;
  background: rgba(201, 164, 78, 0.4);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(165, 133, 60, 0.9);
}

.section-head h2 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--ink);
}
@media (min-width: 640px) { .section-head h2 { font-size: 2.75rem; } }

.head-rule {
  margin: 1.5rem auto 0;
  height: 1px;
  width: 6rem;
  background: rgba(201, 164, 78, 0.5);
}

.head-text {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---------- TIMELINE ---------- */
.timeline-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  padding: 6rem 0;
}
@media (min-width: 640px) { .timeline-section { padding: 8rem 0; } }

.bg-number {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 2.5rem;
  user-select: none;
  font-family: var(--font-display);
  font-size: 16rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(107, 31, 42, 0.05);
}
.bg-number-left { right: auto; left: -2.5rem; top: 4rem; color: rgba(201, 164, 78, 0.09); }
@media (min-width: 640px) { .bg-number { font-size: 22rem; } }

.timeline {
  position: relative;
  margin-top: 5rem;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .timeline { gap: 0; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--line);
  }
  .timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .timeline li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.625rem;
    height: 0.625rem;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    border: 1px solid var(--gold);
    background: var(--paper);
  }
  .tl-left { grid-column: 1; padding-right: 0.5rem; text-align: right; }
  .tl-right { grid-column: 2; padding-left: 0.5rem; }
}

.tl-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(239, 233, 219, 0.4);
  padding: 1.75rem;
  box-shadow: 0 24px 50px -40px rgba(70, 20, 20, 0.6);
  text-align: left;
}
@media (min-width: 640px) { .tl-card { margin: 1.5rem 0; } }

.tl-year {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.tl-card h3 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(165, 133, 60, 0.8);
}

.tl-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-muted);
}

.sources-note {
  max-width: 48rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-muted);
}
.sources-note a { text-underline-offset: 0.25rem; text-decoration-color: rgba(165, 133, 60, 0.5); }

/* ---------- CHURCHES ---------- */
.churches-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6rem 0;
}
@media (min-width: 640px) { .churches-section { padding: 8rem 0; } }

.church-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .church-grid { grid-template-columns: 1fr 1fr; } }
.church-grid > .reveal { height: 100%; }

.church-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  padding: 2rem;
  transition: box-shadow 0.4s;
}
.church-card:hover { box-shadow: 0 24px 60px -40px rgba(70, 20, 20, 0.55); }

.church-head { display: flex; align-items: center; gap: 1rem; }

.church-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(201, 164, 78, 0.4);
  background: rgba(201, 164, 78, 0.1);
  color: var(--gold-dark);
}

.church-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nickname {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold-dark);
}

.church-text {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.church-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.church-meta li { display: flex; align-items: center; gap: 0.75rem; }
.church-meta svg { flex-shrink: 0; color: var(--gold-dark); }
.church-meta a { text-decoration: none; transition: color 0.3s; }
.church-meta a:hover { color: var(--gold-dark); }

/* ---------- MAP & DIRECTIONS ---------- */
.directions-btn {
  margin-top: 1.25rem;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 164, 78, 0.4);
  background: rgba(201, 164, 78, 0.1);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-decoration: none;
  transition: background 0.3s;
}
.directions-btn:hover { background: rgba(201, 164, 78, 0.2); }

.map-wrap {
  height: 420px;
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .map-wrap { height: 520px; } }
.map-wrap #map {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--paper-deep);
}

/* Custom map pins */
.centenar-pin { background: none; border: 0; }
.centenar-pin span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 9999px 9999px 9999px 2px;
  transform: rotate(-45deg);
  background: var(--wine);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.leaflet-popup-content {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink);
}
.leaflet-popup-content a { color: var(--wine); font-weight: 600; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--wine-deep);
  padding: 5rem 0;
  text-align: center;
}

.footer-inner { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.footer-churches {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  text-align: left;
}
@media (min-width: 640px) { .footer-churches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-churches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.footer-church h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.footer-church p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.68);
}
.footer-church p.soft { color: rgba(247, 243, 234, 0.55); }
.footer-church a { color: rgba(247, 243, 234, 0.8); text-decoration: none; transition: color 0.3s; }
.footer-church a:hover { color: var(--gold); }

.footer-logo { display: block; width: 12rem; margin: 0 auto; }
.footer-rule { width: 100%; height: 1px; margin-top: 2.5rem; background: rgba(247, 243, 234, 0.2); }
.footer-date { margin-top: 2rem; font-size: 0.875rem; color: rgba(247, 243, 234, 0.55); }

.footer-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(247, 243, 234, 0.6);
}
.footer-nav a { text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }

.footer-copy { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(247, 243, 234, 0.4); }

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.animate-fade-up { animation: fade-up 0.8s ease-out both; }

@keyframes slow-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.14); }
}

@media (max-width: 639px) {
  @keyframes slow-zoom {
    from { transform: scale(1.62); }
    to { transform: scale(1.7); }
  }
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}
.animate-scroll-cue { animation: scroll-cue 2s ease-in-out infinite; }

.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-bg { animation: none; transform: scale(1.62); }
  .animate-scroll-cue { animation: none; }
}
