/* ============================================================
   Parohia Ortodoxă „Întâmpinarea Domnului" — Alba Iulia
   Paletă liturgică: aur, bordo, bleumarin, pergament
   ============================================================ */

:root {
  --parchment: #F6EFE0;
  --parchment-2: #F1E7D0;
  --parchment-hi: #FBF6EA;
  --ink: #241E17;
  --ink-soft: #5C5142;
  --ink-mute: #8A7C64;

  --gold: #B8912F;
  --gold-bright: #CBA84A;
  --gold-deep: #8A6A1C;

  --burgundy: #6D1622;
  --burgundy-deep: #52101A;

  --navy: #16233D;
  --navy-2: #223454;

  --line: rgba(138, 106, 28, 0.26);
  --line-strong: rgba(138, 106, 28, 0.45);

  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --body: 'Spectral', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 14px;
  --shadow-soft: 0 18px 46px -22px rgba(36, 30, 23, 0.45);
  --shadow-card: 0 24px 60px -30px rgba(22, 35, 61, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 50% -8%, var(--parchment-hi), transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment) 70%, var(--parchment-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cruce ortodoxă (motiv) ---------- */
.cross {
  display: inline-block;
  color: var(--gold);
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 224, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand .cross { color: var(--gold); }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--gold-deep); }
.nav .btn { margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  padding: 0.82rem 1.55rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary { background: var(--burgundy); color: #ffffff !important; }
.btn-primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(109, 22, 34, 0.7);
}
.btn-gold { background: var(--gold); color: #2A2007; }
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(184, 145, 47, 0.7);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(184, 145, 47, 0.09); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 9vw, 106px) 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(241, 231, 208, 0.5), rgba(241, 231, 208, 0.85));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto clamp(38px, 6vw, 60px);
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
}

/* Cross divider */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 460px;
  margin: clamp(48px, 7vw, 72px) auto;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 8vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-eyebrow .rule { width: 34px; height: 1px; background: var(--gold); }
.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.004em;
  margin: 0 0 8px;
  color: var(--ink);
}
.hero h1 .sub {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
  margin-top: 6px;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 22px 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Framed photo */
.hero-figure {
  position: relative;
  padding: 12px;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}
.hero-figure figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(22, 35, 61, 0.86), rgba(22, 35, 61, 0));
  color: #F6EFE0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- Despre ---------- */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}
.prose p { margin: 0 0 1.25em; font-size: 1.1rem; color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .lead-first {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
}
.fact {
  padding: 6px 34px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact .k {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.fact .v {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 10px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(184, 145, 47, 0.25));
}
.tl-item {
  position: relative;
  padding-left: 140px;
  padding-bottom: 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  position: absolute;
  left: 0;
  top: -2px;
  width: 86px;
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold-deep);
  line-height: 1.3;
}
.tl-dot {
  position: absolute;
  left: 98px;
  top: 5px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: var(--gold);
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.tl-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.2;
}
.tl-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- Donații ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.dcard {
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.dcard .eyebrow { margin-bottom: 12px; }
.dcard h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0 0 12px;
  line-height: 1.1;
}
.dcard p { margin: 0 0 22px; font-size: 1.02rem; }

/* Stripe card (aur) */
.dcard--online {
  background: linear-gradient(150deg, #ECD69A 0%, #DDBE63 55%, #C9A227 100%);
  color: #3A2A08;
  border: 1px solid rgba(138, 106, 28, 0.4);
}
.dcard--online .eyebrow { color: #6E5212; }
.dcard--online h3 { color: #2E2106; }
.dcard--online p { color: #4A3810; }
.dcard--online .pay-note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.86rem;
  color: #5A4512;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bank card (bleumarin) */
.dcard--bank {
  background: linear-gradient(158deg, var(--navy-2) 0%, var(--navy) 78%);
  color: #E8EDF6;
  border: 1px solid rgba(203, 168, 74, 0.35);
}
.dcard--bank .eyebrow { color: var(--gold-bright); }
.dcard--bank h3 { color: #F4F7FC; }
.dcard--bank p { color: #B9C4D8; }

.bank-rows { display: grid; gap: 16px; margin-top: 4px; }
.bank-row .k {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 4px;
}
.bank-row .v { font-size: 1rem; color: #E8EDF6; font-weight: 500; }

.iban-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(203, 168, 74, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
}
.iban-box .iban {
  font-family: var(--mono);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: #F6EFE0;
  white-space: nowrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #2A2007;
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--gold-bright); }
.copy-btn:active { transform: scale(0.97); }
.copy-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.copy-btn.copied { background: #6FA871; color: #10240F; }

.bank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-list { display: grid; gap: 26px; }
.cinfo .k {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}
.cinfo .v { font-size: 1.12rem; color: var(--ink); line-height: 1.5; }
.cinfo .v a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.cinfo .v a:hover { color: var(--gold-deep); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(0.95); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--parchment-2), #EBDFC4);
  border-top: 1px solid var(--line-strong);
  padding: 54px 0 40px;
  text-align: center;
}
.footer-cross { color: var(--gold); margin-bottom: 16px; }
.footer-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1.2;
}
.footer-addr { color: var(--ink-soft); font-size: 0.98rem; margin-top: 6px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px 0 18px;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-deep); }
.footer-copy { font-size: 0.82rem; color: var(--ink-mute); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 84px) 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-head { margin-bottom: 40px; text-align: center; }
.legal-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--ink);
  margin: 12px 0 8px;
  line-height: 1.08;
}
.legal-head .updated { font-size: 0.85rem; color: var(--ink-mute); letter-spacing: 0.04em; }
.legal-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 40px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 6px;
}
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1.04rem; }
.legal-body ul { padding-left: 1.3em; margin: 0.6em 0 1.2em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body a { color: var(--burgundy); }
.legal-note {
  background: rgba(241, 231, 208, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: 44px;
}
.back-link:hover { color: var(--gold-deep); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 460px; margin: 0 auto; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { display: none; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .facts { gap: 22px; }
  .fact { border-right: none; padding: 6px 10px; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 7px; }
  .tl-item { padding-left: 34px; }
  .tl-year {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin-bottom: 2px;
    font-size: 1.15rem;
  }
  .tl-dot { left: 1px; top: 8px; }
  .bank-cols { grid-template-columns: 1fr; }
  .iban-box .iban { font-size: 0.98rem; white-space: normal; word-break: break-all; }
  .dcard { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .copy-btn { transition: none; }
}
