/* =========================================
   Biserica Zărnești — Design System
   ========================================= */

:root {
  --bg: #F5F0E8;
  --accent: #7A1F2B;
  --accent-hover: #5E1520;
  --gold: #B8913A;
  --gold-light: #D4B868;
  --text: #2C1810;
  --text-light: #6B5B4E;
  --border: #E8DFD0;
  --card-bg: #FFFDF8;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(44,24,16,0.06);
  --shadow-lg: 0 4px 16px rgba(44,24,16,0.10);
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
}
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.7rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--card-bg); }

/* =========================================
   Header / Navigation
   ========================================= */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.logo-cross {
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.logo-text small {
  font-size: 0.78rem;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-donate {
  background: var(--accent);
  color: var(--white);
}
.btn-donate:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--card-bg);
  color: var(--card-bg);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }
.btn-small { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn-copy {
  background: var(--border);
  color: var(--text);
}
.btn-copy:hover { background: var(--gold-light); }

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, #4A1018 100%);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-img-label {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(42,14,18,0.55) 0%, rgba(42,14,18,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 3rem 1rem;
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Progress Bar
   ========================================= */
.progress-section { text-align: center; }
.progress-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.progress-bar-outer {
  background: var(--border);
  border-radius: 20px;
  height: 32px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  min-width: 48px;
  transition: width 1s ease;
}
.progress-text {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.progress-amounts {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =========================================
   Timeline
   ========================================= */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline-item.completed .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.timeline-item.active .timeline-marker {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.marker-icon {
  font-size: 0.8rem;
  font-weight: 700;
}

.active-pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
}
.timeline-content h3 {
  margin-bottom: 0.4rem;
}
.timeline-content p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-completed { background: #E8F5E9; color: #2E7D32; }
.badge-active { background: #FFF8E1; color: #F57F17; }
.badge-upcoming { background: #F5F0E8; color: var(--text-light); }

/* =========================================
   Cards / Content
   ========================================= */
.intro-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.intro-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.content-page p { margin-bottom: 1rem; }
.content-page h2, .content-page h3 { margin-top: 2rem; margin-bottom: 0.8rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.post-card h3 { margin-bottom: 0.5rem; }
.post-card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 0.5rem; }
.post-card time { font-size: 0.82rem; color: var(--text-light); }

/* =========================================
   CTA
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #4A1018 100%);
  color: var(--white);
  text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: 0.6rem; }
.cta-content p { opacity: 0.9; margin-bottom: 1.5rem; }

/* =========================================
   Page Header
   ========================================= */
.page-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.4rem; }
.page-header p { color: var(--text-light); font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; }

/* =========================================
   Donate
   ========================================= */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.donate-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.donate-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--accent);
}
.donate-card p { font-size: 0.92rem; margin-bottom: 0.5rem; color: var(--text-light); }

.iban-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.iban-label { font-weight: 600; font-size: 0.85rem; }
.iban-code { font-size: 0.95rem; letter-spacing: 0.02em; word-break: break-all; }

.donate-note {
  margin-top: 2rem;
  padding: 1.2rem;
  background: var(--card-bg);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-light);
}

/* =========================================
   Stage Details
   ========================================= */
.stage-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.stage-detail:last-child { border-bottom: none; }
.stage-num { color: var(--gold); margin-right: 0.3rem; }

/* =========================================
   Journal
   ========================================= */
.journal-entry {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.journal-entry:last-child { border-bottom: none; }
.journal-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.journal-stage {
  background: var(--border);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* =========================================
   Donors / Ctitori
   ========================================= */
.donors-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.donor-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.donor-city { display: block; font-size: 0.82rem; color: var(--text-light); margin-top: 0.2rem; }

/* =========================================
   Empty State
   ========================================= */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

/* =========================================
   Contact
   ========================================= */
.contact-grid {
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Alerts
   ========================================= */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-error { background: #FDEDED; color: #B71C1C; border: 1px solid #F5C6CB; }

/* =========================================
   Forms
   ========================================= */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,145,58,0.15);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.9rem; margin-bottom: 0.3rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
}

/* =========================================
   Mobile Responsive
   ========================================= */
@media (max-width: 768px) {
  html { font-size: 17px; }

  .site-header .container { padding: 0 1rem; }
  .logo-text strong { font-size: 0.95rem; }
  .logo-text small { font-size: 0.72rem; }
  .logo-cross { font-size: 1.5rem; }
  .logo { gap: 0.4rem; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav .btn-donate {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero { min-height: 340px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .progress-amounts {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }

  .content-page { padding: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .donate-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 36px; }
  .timeline-content { padding: 1rem; }
  .page-header { padding: 1.8rem 0; }
  .section { padding: 2rem 0; }
  .footer-grid { gap: 1.2rem; }
  .current-stage-card { padding: 1.2rem; }
  .current-stage-budget { flex-direction: column; gap: 0.3rem; }
  .iban-display { padding: 0.6rem; font-size: 0.88rem; }
  .progress-amounts { font-size: 0.82rem; }
}

/* =========================================
   Documents Page
   ========================================= */
.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.document-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}
.document-icon { flex-shrink: 0; }
.document-info { flex: 1; }
.document-info h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.document-info p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.2rem; }
.document-info time { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 600px) {
  .document-card { flex-direction: column; text-align: center; }
}

/* =========================================
   Content with Image
   ========================================= */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0;
}
.content-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-figure img { border-radius: var(--radius); }
.content-figure figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  padding: 0.4rem;
}

.content-with-image-reverse { direction: rtl; }
.content-with-image-reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .content-with-image { grid-template-columns: 1fr; }
  .content-with-image-reverse { direction: ltr; }
}

/* =========================================
   Misc
   ========================================= */
.priest-signature {
  color: var(--text-light);
  font-style: italic;
}
.cta-inline {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
}
.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--white);
}
.stage-cost {
  font-size: 0.88rem;
  color: var(--gold);
  margin-top: 0.3rem;
}
.donate-card-main {
  border-color: var(--gold);
  border-width: 2px;
}
.donate-card-qr { text-align: center; }
.qr-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}
.qr-image-small {
  width: 140px;
  height: 140px;
  margin: 0.5rem auto;
  border-radius: var(--radius);
}
.qr-epc-wrap {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.qr-epc-wrap small { display: block; margin-top: 0.3rem; color: var(--text-light); font-size: 0.78rem; }
.donate-announce {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.donate-announce h3 { margin-bottom: 0.5rem; }
.donate-announce p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1rem; }
.announce-form-wrap { max-width: 650px; margin: 0 auto; }
.donate-detail-note {
  margin-top: 1rem;
  padding: 0.8rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.progress-goal-title {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

/* =========================================
   Render Gallery (randări 3D pe Acasă)
   ========================================= */
.render-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.render-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.render-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.render-card:hover img {
  transform: scale(1.02);
}
.render-card figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}
.render-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .render-gallery { grid-template-columns: 1fr; }
}

/* =========================================
   Current Stage Card (Acasă)
   ========================================= */
.current-stage-card {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.current-stage-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}
.current-stage-card h2 { margin-bottom: 0.4rem; }
.current-stage-card p { color: var(--text-light); margin-bottom: 0.8rem; }
.current-stage-budget {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.progress-details {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.donors-list-compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* =========================================
   Journal Cards (list page)
   ========================================= */
.journal-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.journal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.journal-card-img {
  overflow: hidden;
}
.journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.3s;
}
.journal-card-img:hover img { transform: scale(1.03); }
.journal-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.journal-card-body h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.journal-card-body h2 a { color: var(--text); }
.journal-card-body h2 a:hover { color: var(--accent); }
.journal-card-body p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .journal-card { grid-template-columns: 1fr; }
  .journal-card-img img { max-height: 200px; }
}

/* =========================================
   Post Gallery + Lightbox
   ========================================= */
.post-gallery { margin-top: 2rem; }
.post-gallery h3 { margin-bottom: 1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
}

/* =========================================
   Before / After
   ========================================= */
.before-after-section { margin-top: 2rem; }
.before-after-section h3 { margin-bottom: 1rem; }
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.before-after figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.before-after figure img { width: 100%; }
.before-after figcaption {
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-light);
}

.stage-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.stage-photos figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stage-photos img { width: 100%; }
.stage-photos figcaption {
  text-align: center;
  padding: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .before-after, .stage-photos { grid-template-columns: 1fr; }
}

/* =========================================
   Post Share Buttons
   ========================================= */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-light);
}
.share-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1DA851; color: var(--white); }
.share-facebook { background: #1877F2; }
.share-facebook:hover { background: #0d65d9; color: var(--white); }

/* =========================================
   Post Navigation
   ========================================= */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-nav-link {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.post-nav-link:hover { border-color: var(--accent); color: var(--accent); }
.post-nav-link small { font-size: 0.78rem; color: var(--text-light); display: block; margin-bottom: 0.2rem; }
.post-nav-link span { font-weight: 600; }
.post-nav-next { text-align: right; }

@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
}

/* =========================================
   Contact Layout
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.contact-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}
.contact-form-wrap h3 { margin-bottom: 1rem; }
.contact-form .btn { margin-top: 0.5rem; }

.render-solo {
  max-width: 500px;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* =========================================
   Post Full
   ========================================= */
.post-full { max-width: 750px; }
.post-full p { margin-bottom: 1rem; }
.post-full img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

/* =========================================
   Transparency / Finance
   ========================================= */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.finance-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.finance-card-in { border-left: 4px solid #2E7D32; }
.finance-card-out { border-left: 4px solid var(--accent); }
.finance-card-balance { border-left: 4px solid var(--gold); }
.finance-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.finance-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.finance-table th {
  background: var(--bg);
  text-align: left;
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border);
}
.finance-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.finance-table tr:last-child td { border-bottom: none; }
.amount-in { color: #2E7D32; font-weight: 600; }
.amount-out { color: var(--accent); font-weight: 600; }

.finance-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.finance-section-header .section-title { margin-bottom: 0; }
.finance-section-header .section-title::after { display: none; }

.monthly-table-wrap { max-width: 500px; margin: 0 auto; }

/* Stage spending bars */
.stage-bars { max-width: 600px; margin: 0 auto; }
.stage-bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.stage-bar-label {
  flex: 0 0 140px;
  font-size: 0.85rem;
  text-align: right;
  color: var(--text-light);
}
.stage-bar-track {
  flex: 1;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.stage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 10px;
  min-width: 4px;
}
.stage-bar-amount {
  flex: 0 0 110px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .finance-summary { grid-template-columns: 1fr; }
  .finance-value { font-size: 1.3rem; }
  .stage-bar-label { flex: 0 0 90px; font-size: 0.78rem; }
  .stage-bar-amount { flex: 0 0 80px; font-size: 0.78rem; }
  .finance-table { font-size: 0.82rem; }
  .finance-table th, .finance-table td { padding: 0.5rem 0.5rem; }
}

/* =========================================
   Ctitori
   ========================================= */
.ctitori-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
  color: var(--text-light);
}
.ctitori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.ctitor-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}
.ctitor-initial {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ctitor-info strong { display: block; }
.ctitor-city {
  font-size: 0.82rem;
  color: var(--text-light);
}
.ctitori-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-style: italic;
}

/* Audit */
.audit-details small {
  color: var(--text-light);
  font-size: 0.78rem;
  word-break: break-all;
}
