/* =========================================================
   PASCOM · Paróquia de São João Baptista
   Diocese de Bragança-Miranda
   ========================================================= */

:root {
  --gold-900: #5c4412;
  --gold-800: #8a6a1a;
  --gold-600: #b8912c;
  --gold-400: #d9b65b;
  --white: #ffffff;
  --gold-200: #f0dfa8;
  --gold-100: #faf3de;
  --gold-border: #ecdca0;
  --text: #3b2c0d;
  --text-muted: #8a7645;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(92, 68, 18, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gold-900);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

.container.narrow { max-width: 780px; }

.muted { color: var(--text-muted); }
.muted.small { font-size: 0.85rem; }

/* =============== TOPBAR =============== */
.topbar {
  background: var(--gold-900);
  color: var(--white);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; opacity: 0.9; }
.topbar-info i { color: var(--white); margin-right: 4px; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--white); opacity: 0.85; transition: opacity .2s, color .2s; }
.topbar-social a:hover { opacity: 1; color: var(--white); }

/* =============== HEADER / NAV =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(92, 68, 18, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-900);
}
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-800), var(--gold-900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: 0.5px; }
.brand-text small { color: var(--text-muted); font-size: 0.72rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--gold-900);
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav > ul > li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-900);
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active { background: var(--gold-100); color: var(--gold-600); }
.nav-link.nav-cta {
  background: var(--gold-600);
  color: var(--white);
}
.nav-link.nav-cta:hover { background: var(--gold-800); }
.nav-link i.fa-chevron-down { font-size: 0.7rem; }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--text);
}
.dropdown li a:hover { background: var(--gold-100); color: var(--gold-600); }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--white); color: var(--gold-900); }
.btn-yellow:hover { background: var(--gold-200); box-shadow: 0 8px 20px rgba(184,145,44,.4); }
.btn-blue { background: var(--gold-800); color: var(--white); }
.btn-blue:hover { background: var(--gold-900); box-shadow: 0 8px 20px rgba(138,106,26,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* =============== HERO =============== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--gold-900) 0%, var(--gold-800) 55%, var(--gold-600) 100%);
  color: var(--white);
  padding: 56px 0 60px;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(92,68,18,0.88) 0%, rgba(138,106,26,0.72) 55%, rgba(184,145,44,0.55) 100%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-photo-credit {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 8px;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.65);
  max-width: 90%;
  text-align: right;
}
.hero-photo-credit a { color: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
@media (max-width: 640px) {
  .hero-photo-credit { right: 10px; left: 10px; max-width: none; font-size: 0.62rem; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.quick-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.quick-item:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* =============== PATRONO =============== */
.patrono {
  background: var(--white);
  padding: 70px 0;
  border-bottom: 1px solid var(--gold-border);
}
.patrono-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.patrono-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--white), var(--gold-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold-900);
  box-shadow: 0 16px 30px rgba(184,145,44,0.35);
  border: 6px solid var(--white);
  outline: 3px solid var(--gold-800);
}
.patrono-dates { color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.patrono blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--gold-600);
  background: var(--gold-100);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--gold-900);
  font-weight: 600;
}
.patrono-note { color: var(--text-muted); font-size: 0.95rem; }

/* =============== SECTIONS =============== */
.section { padding: 76px 0; }
.section-alt { background: var(--gold-100); }
.section-kicker {
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 24px;
}
.icon-title {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

/* Timeline */
.timeline {
  border-left: 3px solid var(--gold-400);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-800);
  border: 3px solid var(--white);
}
.timeline-year {
  display: block;
  font-weight: 700;
  color: var(--gold-900);
  font-family: var(--font-heading);
}

/* Priest card */
.priest-card {
  display: flex;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.priest-photo {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-800), var(--gold-900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.priest-role { color: var(--gold-600); font-weight: 600; margin-bottom: 10px; }
.priest-contacts { display: flex; flex-direction: column; gap: 6px; }
.priest-contacts i { color: var(--gold-600); margin-right: 8px; }

/* Daily cards (Evangelho / Santo) */
.daily-card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.daily-date {
  display: inline-block;
  background: var(--gold-800);
  color: var(--white);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: capitalize;
}
.daily-placeholder { font-size: 1.05rem; }
.daily-liturgical-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 4px;
}
.daily-citation {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-800);
  margin-bottom: 16px;
}
.daily-text {
  text-align: left;
  font-size: 1.02rem;
}
.daily-text p { margin-bottom: 0.9em; }
.daily-text p:last-child { margin-bottom: 0; }
.daily-saint-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-800);
}

/* Tabs (Missas) */
.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tab-btn {
  background: var(--white);
  border: 2px solid var(--gold-border);
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--text);
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--gold-400); }
.tab-btn.active { background: var(--gold-800); border-color: var(--gold-800); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s; }

.schedule-list { display: flex; flex-direction: column; gap: 14px; }
.schedule-list li {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.schedule-list i { color: var(--gold-600); }

/* Info card rows (Confissões / Adoração) */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gold-600);
  transition: transform .2s;
}
.info-card:hover { transform: translateY(-6px); }
.info-card i { font-size: 1.8rem; color: var(--gold-800); margin-bottom: 12px; }

/* Accordion (Catequese) */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header i { transition: transform .25s; color: var(--gold-600); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.accordion-item.open .accordion-body { max-height: 240px; padding: 0 20px 18px; }

/* Agenda */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }
.agenda-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  align-items: center;
}
.agenda-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--gold-800);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.agenda-date .day { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); }
.agenda-date .month { font-size: 0.75rem; text-transform: uppercase; color: var(--gold-200); font-weight: 700; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-6px); }
.news-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-800));
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-date { color: var(--gold-600); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.news-link { color: var(--gold-600); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.news-link:hover { color: var(--gold-900); }
.news-empty { color: var(--text-muted); grid-column: 1/-1; text-align: center; padding: 20px; }

/* Article page (secção Notícias, artigo completo) */
.article-header { padding: 44px 0 30px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-600);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.article-back:hover { color: var(--gold-900); }
.article-date { color: var(--gold-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 10px 0 0; }
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.article-body { font-size: 1.05rem; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article-body ul { list-style: disc; margin: 0 0 1.1em; padding-left: 1.4em; }
.article-body ol { list-style: decimal; margin: 0 0 1.1em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body li p { margin: 0; }
.article-body a { color: var(--gold-600); text-decoration: underline; }
.article-body a:hover { color: var(--gold-900); }
.article-body img { max-width: 100%; border-radius: 10px; margin: 1em 0; }
.article-body blockquote {
  border-left: 4px solid var(--gold-600);
  margin: 1.4em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--text-muted);
  font-style: italic;
}

/* Groups */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.group-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.group-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(92,68,18,0.14); }
.group-card i { font-size: 1.6rem; color: var(--gold-800); background: var(--gold-100); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.gallery-tile {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-900));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  transition: transform .2s;
}
.gallery-tile:hover { transform: scale(1.04); }
.gallery-tile i { font-size: 1.8rem; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30,22,8,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  width: min(70vw, 480px);
  aspect-ratio: 1/1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--white); color: var(--gold-900); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Velas Virtuais */
.candle-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 8px;
}
.form-row { display: flex; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold-400); }

.candles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.candle-item {
  background: var(--gold-900);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.candle-flame {
  font-size: 1.6rem;
  color: var(--white);
  animation: flicker 1.6s infinite ease-in-out;
  margin-bottom: 8px;
}
.candle-name { font-weight: 700; font-size: 0.9rem; }
.candle-intention { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin: 6px 0 0; }
.candles-empty { color: var(--text-muted); grid-column: 1/-1; text-align: center; padding: 20px; }

@keyframes flicker {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.15) translateY(-2px); opacity: 0.85; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contactos */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-list i { color: var(--gold-600); margin-right: 10px; width: 20px; }
.social-block p { font-weight: 600; margin-bottom: 10px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background .2s, transform .2s;
}
.social-icons a:hover { background: var(--white); color: var(--gold-900); transform: translateY(-3px); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-status { margin-top: 4px; min-height: 1.2em; }
.form-status-success { color: #2f8f5f; font-weight: 600; }
.form-status-error { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer { background: var(--gold-900); color: rgba(255,255,255,0.85); padding-top: 50px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--font-heading); color: var(--white); font-size: 1.1rem; }
.footer-brand p { margin: 2px 0 0; font-size: 0.85rem; opacity: 0.75; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--white); color: var(--gold-900); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.82rem; opacity: 0.7; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-800); }

/* =============== RESPONSIVE =============== */
@media (max-width: 960px) {
  .two-col, .contact-wrap { grid-template-columns: 1fr; }
  .patrono-inner { grid-template-columns: 1fr; text-align: center; }
  .card-row, .news-grid, .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .topbar-info { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding: 90px 24px 24px;
    transition: right .3s ease;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 12px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .priest-card { flex-direction: column; text-align: center; }
  .priest-contacts { align-items: center; }
  .card-row, .news-grid, .groups-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}
