/*
Theme Name: Szent Erzsébet Plébánia
Template: twentytwentyfive
Description: A Rózsák terei Szent Erzsébet Plébánia egyházi honlapjának gyermek sablonja, a "Rózsák Tere Warmth" design alapján.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: szent-erzsebet
*/

/* ============ Layout resets ============ */

.wp-site-blocks > footer {
  margin-block-start: 0;
}

.wp-block-group.has-section-flush {
  margin-top: 0;
}

/* ============ Header ============ */

.site-header {
  border-bottom: 1px solid rgba(58, 38, 32, 0.1);
}

.site-header__inner {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  align-items: center;
}

.site-header__brand {
  align-items: center;
  gap: 0.85rem;
}

.site-header__brand .wp-block-site-logo {
  flex-shrink: 0;
}

.site-header__brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-header__brand-text {
  line-height: 1.15;
}

.site-header__brand-text .wp-block-site-title,
.site-header__brand-text .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--plum);
  text-decoration: none;
}

.site-header__brand-text .wp-block-site-tagline {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--rose-text);
}

.primary-nav .wp-block-navigation {
  gap: 1.9rem;
}

.primary-nav .wp-block-navigation-item a {
  text-decoration: none;
  color: var(--wp--preset--color--plum);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease-warm, ease);
}

.primary-nav .wp-block-navigation-item a:hover,
.primary-nav .wp-block-navigation-item a:focus-visible {
  color: var(--wp--preset--color--rose-text);
}

.lang-switcher {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(58, 38, 32, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  background: #fff;
}

.lang-switcher ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher li {
  display: inline-flex;
}

.lang-switcher a {
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--wp--preset--color--plum);
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a:focus-visible {
  background: var(--wp--preset--color--rose-pale);
  color: var(--wp--preset--color--rose-text);
}

.lang-switcher li.current-lang a {
  background: var(--wp--preset--color--rose);
  color: #fff;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
  background:
    radial-gradient(ellipse 620px 480px at 88% 8%, var(--wp--preset--color--gold-pale) 0%, transparent 62%),
    radial-gradient(ellipse 900px 700px at 12% 100%, var(--wp--preset--color--rose-pale) 0%, transparent 65%),
    var(--wp--preset--color--ivory);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(179, 88, 90, 0.14) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: -10px -10px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__news {
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.9rem;
}

.hero__news-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wp--preset--color--rose);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.15rem 0.5rem 0.65rem;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0;
  box-shadow: 0 8px 24px -8px rgba(179, 88, 90, 0.55);
  animation: pillGlow 3.4s ease-in-out 1.2s infinite;
}

.hero__news-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero__news-pills .wp-block-post-template {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__news-pill-item {
  margin: 0;
}

.hero__news-pill-item a,
.hero__news-pill-item.hero__news-pill-item--empty {
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--rose);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(179, 88, 90, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__news-pill-item a:hover,
.hero__news-pill-item a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(179, 88, 90, 0.4);
}

.hero__eyebrow {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-text);
  margin: 0 0 0.9rem 0;
}

.hero__headline {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem 0;
}

.hero__headline em {
  font-style: italic;
  color: var(--wp--preset--color--rose);
}

.hero__subtext {
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(58, 38, 32, 0.86);
  max-width: 34rem;
  margin: 0 0 2.3rem 0;
}

.hero__actions .wp-block-button__link {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
}

.hero__actions .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid rgba(58, 38, 32, 0.28);
  color: var(--wp--preset--color--plum);
}

.hero__actions .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--rose-text);
  color: var(--wp--preset--color--rose-text);
}

.hero__portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(185, 139, 62, 0.45);
  animation: slowRotate 60s linear infinite;
  transform: scale(1.08);
}

.hero__medallion {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff8f0 0%, var(--wp--preset--color--rose-pale) 46%, var(--wp--preset--color--gold-pale) 100%);
  box-shadow:
    0 30px 60px -20px rgba(179, 88, 90, 0.4),
    0 0 0 10px #ffffff,
    0 0 0 12px rgba(185, 139, 62, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero__medallion-inner {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(179, 88, 90, 0.18);
}

.hero__medallion-inner .wp-block-image {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__medallion-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: sepia(28%) saturate(140%) hue-rotate(-10deg) brightness(0.94) contrast(1.03);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__portrait { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .hero { padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero__headline { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .hero__subtext { font-size: 1.05rem; }
}

/* ============ Section rhythm ============ */

.section-eyebrow {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-text);
  margin: 0 0 0.6rem 0;
}

.section-heading {
  margin: 0 0 1.2rem 0;
}

/* ============ Miserend (mass times) section ============ */

.miserend-section {
  background: var(--wp--preset--color--ivory-deep);
}

.miserend-table {
  border-collapse: collapse;
}

.miserend-table .wp-block-column {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 12px 28px -18px rgba(58, 38, 32, 0.35);
}

.miserend-table .wp-block-column h3 {
  font-size: 1.1rem;
  color: var(--wp--preset--color--rose-text);
  margin-top: 0;
}

.miserend-note {
  border-left: 3px solid var(--wp--preset--color--gold);
  background: var(--wp--preset--color--gold-pale);
  padding: 1rem 1.4rem;
  border-radius: 0 12px 12px 0;
}

/* ============ History teaser ============ */

.history-section .wp-block-column:first-child {
  border-right: 1px dashed rgba(58, 38, 32, 0.18);
}

@media (max-width: 780px) {
  .history-section .wp-block-column:first-child {
    border-right: none;
    border-bottom: 1px dashed rgba(58, 38, 32, 0.18);
    padding-bottom: 1.5rem;
  }
}

/* ============ Announcements query loop ============ */

.announcements-section {
  background: #fff;
}

.announcements-section .wp-block-post {
  background: var(--wp--preset--color--ivory);
  border-radius: 16px;
  padding: 1.6rem;
}

/* ============ Info tiles (equal cards) ============ */

.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--wp--preset--color--ivory-deep);
  border-radius: 18px;
  padding: 1.8rem;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: flex-start;
}

/* ============ Contact / visit band ============ */

.contact-band {
  background: var(--wp--preset--color--plum);
  color: var(--wp--preset--color--ivory);
}

.contact-band h2,
.contact-band a {
  color: var(--wp--preset--color--ivory);
}

.contact-band .wp-block-button__link {
  background: var(--wp--preset--color--rose);
  color: #fff;
}

.contact-band .wp-block-button__link:hover {
  background: var(--wp--preset--color--gold);
}

/* ============ Footer ============ */

.site-footer {
  background: var(--wp--preset--color--plum);
  color: rgba(250, 243, 234, 0.82);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--wp--preset--color--ivory);
}

.site-footer a:hover {
  color: var(--wp--preset--color--rose-soft);
}

.site-footer h3 {
  color: var(--wp--preset--color--gold-pale);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(250, 243, 234, 0.15);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ============ Page title band ============ */

.page-title-band {
  background:
    radial-gradient(ellipse 620px 400px at 88% 0%, var(--wp--preset--color--gold-pale) 0%, transparent 62%),
    var(--wp--preset--color--ivory);
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(58, 38, 32, 0.1);
}

.page-title-band .wp-block-post-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

/* ============ Motion ============ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(58, 38, 32, 0.4);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(179, 88, 90, 0.55); }
  50% { box-shadow: 0 8px 32px -6px rgba(179, 88, 90, 0.85), 0 0 0 6px rgba(179, 88, 90, 0.08); }
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up,
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Primary-nav dropdown (Plébánia ▾) */
.primary-nav .wp-block-navigation__submenu-container {
  min-width: 13rem;
  padding: 0.5rem 0;
  border: 1px solid rgba(58, 38, 32, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 38, 32, 0.14);
}
.primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}
.primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover,
.primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:focus-visible {
  background: var(--wp--preset--color--rose-pale);
}
.primary-nav .wp-block-navigation__submenu-icon svg { stroke: var(--wp--preset--color--rose-text); }

/* Gold highlight for the Adományok / Donate menu item (header only) */
.primary-nav .wp-block-navigation-item.nav-donate > a.wp-block-navigation-item__content {
  background: linear-gradient(135deg, var(--wp--preset--color--gold) 0%, var(--wp--preset--color--gold-text) 100%);
  color: #fffaf0;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(140, 101, 40, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.primary-nav .wp-block-navigation-item.nav-donate > a.wp-block-navigation-item__content:hover,
.primary-nav .wp-block-navigation-item.nav-donate > a.wp-block-navigation-item__content:focus-visible {
  color: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(140, 101, 40, 0.65);
}

/* Napi evangélium band */
.miserend-layout {
  gap: var(--wp--preset--spacing--60);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}
.miserend-layout__side { display: flex; }
.napi-evangelium {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
  border-radius: 1.25rem;
  background: var(--wp--preset--color--gold-pale);
}
.napi-evangelium__verse {
  margin: 0 auto;
  max-width: 42rem;
  border: 0;
  padding: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.35rem;
}
.napi-evangelium__verse cite {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Nunito Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--wp--preset--color--gold-text);
}
.napi-evangelium__more a { color: var(--wp--preset--color--rose-text); }

/* Tile-button grid of child pages ([page_tiles]) */
.page-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: var(--wp--preset--spacing--50);
  margin: var(--wp--preset--spacing--40) 0;
}
.page-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px -14px rgba(58, 38, 32, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-tile:hover,
.page-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -14px rgba(58, 38, 32, 0.38);
}
.page-tile__icon { color: var(--wp--preset--color--gold-text); line-height: 0; }
.page-tile:hover .page-tile__icon,
.page-tile:focus-visible .page-tile__icon { color: var(--wp--preset--color--rose-text); }
.page-tile__label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--wp--preset--color--plum);
}

/* ============ Grant notice (organ restoration) ============ */

.grant-notice__text {
  margin: 0;
}

.grant-notice__text strong {
  font-weight: 700;
}
