/*
Theme Name: Georgievskaia Church
Theme URI: https://georgievskaia.md/
Author: Migrated from Joomla (tpl_georgievskaia by Stanislav K)
Description: Verbatim WordPress port of the Joomla "georgievskaiachurch" template for Свято-Георгиевская церковь г. Кишинёва. Chrome, assets and layout reproduce the original template; content imported from the live site.
Version: 1.0.0
Text Domain: georgievskaiachurch
*/

/* ==========================================================================
   Modern redesign layer (2026) - overrides the legacy Joomla/Foundation
   chrome with a lighter, contemporary look inspired by the new site design.
   Loaded last, after all legacy stylesheets, so these rules win the cascade.
   ========================================================================== */

:root {
  --color-bg: #faf8f4;
  --color-bg-alt: #f0ebe2;
  --color-surface: #ffffff;
  --color-text: #2c2416;
  --color-text-muted: #6b5d4a;
  --color-accent: #8b6914;
  --color-accent-dark: #6b5010;
  --color-border: #ddd4c4;
  --color-header: #1a1510;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(44, 36, 22, 0.08);
}

body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-sans) !important;
  line-height: 1.6;
}

body, .row, .main, .content, .sidebar-block, .footer {
  background-image: none !important;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif) !important;
  color: var(--color-text) !important;
}

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-serif); font-weight: bold; font-size: 18px; color: var(--color-text); }
.brand-sub { font-family: var(--font-sans); font-size: 13px; color: var(--color-text-muted); }

.site-nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}
.site-nav-menu li { margin: 0; }
.site-nav-menu a {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav-menu a:hover,
.site-nav-menu li.current > a,
.site-nav-menu li.active > a {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-banner .hero-overlay {
  background: linear-gradient(180deg, rgba(26,21,16,0.55), rgba(26,21,16,0.75));
  padding: 64px 24px;
}
.hero-banner.hero-inner .hero-overlay { padding: 40px 24px; }
.hero-inner-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: #e8dcc0;
  margin: 0 0 12px;
}
.hero-banner h1 {
  color: #fff !important;
  font-size: 40px;
  margin: 0 0 16px;
}
.hero-banner.hero-inner h1 { font-size: 28px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #fff !important; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.main { background: var(--color-bg); }
.main .row { max-width: var(--max-width); margin: 0 auto; }
.content, .sidebar { background: transparent; }
.content { padding: 32px 24px; }
.sidebar-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 20px;
}
.sidebar-block h5 { margin-top: 0; }

.footer {
  background: var(--color-header) !important;
  color: #cfc6b8;
  margin-top: 40px;
  padding: 24px 0;
}
.footer .row { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer a { color: #e8dcc0; }

@media (max-width: 700px) {
  .header-top { flex-direction: column; align-items: flex-start; }
  .hero-banner h1 { font-size: 28px; }
}


/* ---- Homepage sections (cards) ---- */
.home-section { padding: 32px 0; }
.home-section-alt { background: var(--color-bg-alt); margin: 0 -24px; padding: 32px 24px; border-radius: var(--radius); }
.home-section h2 { margin-top: 0; }
.announce-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.about-flex { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.about-text { flex: 1 1 320px; }
.about-photo { flex: 0 1 320px; }
.about-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contacts-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 420px;
}
.contacts-box p { margin: 6px 0; }
.link-more { display: inline-block; margin-top: 8px; font-weight: 600; }

@media (max-width: 700px) {
  .home-section-alt { margin: 0; }
}


/* Clergy page (Священнослужители) */
.clergy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}
.clergy-toc a {
  background: var(--color-bg-alt, #f3ede0);
  border: 1px solid var(--color-accent, #8b6914);
  color: var(--color-accent, #8b6914);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.95em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.clergy-toc a:hover {
  background: var(--color-accent, #8b6914);
  color: #fff;
}
.clergy-card {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  scroll-margin-top: 100px;
}
.clergy-card p.clergy-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3em;
  color: var(--color-accent, #8b6914);
  margin: 0 0 14px;
  border-bottom: 1px solid #eee2c8;
  padding-bottom: 10px;
}


/* Schedule page (Расписание богослужений) */
.schedule-page.card {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 30px 34px;
  margin: 20px 0;
  line-height: 1.7;
}
.schedule-page.card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-accent-dark, #6b5010);
  margin-top: 0;
}
.schedule-page.card u {
  color: var(--color-accent, #8b6914);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--color-accent, #8b6914);
  padding-bottom: 1px;
}
.schedule-page.card hr {
  border: none;
  border-top: 1px dashed #ddd4c4;
  margin: 18px 0;
}


/* Sermons page (Проповеди) */
.sermons-intro {
  color: var(--color-text-muted, #6b5d4a);
  margin-bottom: 24px;
}
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.sermon-card {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.sermon-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.sermon-thumb:hover img { transform: scale(1.05); }
.sermon-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(139,105,20,0.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
}
.sermon-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sermon-title {
  font-weight: bold;
  margin: 0 0 8px;
  font-size: 0.98em;
  line-height: 1.4;
}
.sermon-date {
  margin: auto 0 0;
  font-size: 0.85em;
  color: var(--color-text-muted, #6b5d4a);
}


/* Social service page (Социальное служение) */
.social-page {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 30px 34px;
  margin: 20px 0;
  line-height: 1.7;
}
.social-page h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-accent-dark, #6b5010);
  margin-top: 0;
}
.social-page em {
  color: var(--color-text-muted, #6b5d4a);
}
.social-page hr {
  border: none;
  border-top: 1px dashed #ddd4c4;
  margin: 18px 0;
}
.social-page img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}


/* History page (История храма) */
.history-page {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 30px 34px;
  margin: 20px 0;
  line-height: 1.8;
  text-align: justify;
}
.history-page p, .history-page div {
  margin-bottom: 14px;
}
.history-page a {
  color: var(--color-accent, #8b6914);
}


/* Photo gallery page (Фотогалерея) */
.gallery-intro {
  color: var(--color-text-muted, #6b5d4a);
  margin-bottom: 20px;
}
.gallery-wrap.card {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px;
}


/* Online broadcast page (Онлайн-трансляция) */
.online-page {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 30px 34px;
  margin: 20px 0;
  line-height: 1.7;
}
.online-page h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-accent-dark, #6b5010);
  margin-top: 0;
}


/* FooGallery container - card style wrapper (fallback since block className isn't output) */
.foogallery-container {
  background: #fff;
  border: 1px solid #e7e0d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px;
}
