/*
Theme Name: Waldbrölkirche
Theme URI: https://www.xn--waldbrlkirche-nmb.de/
Author: Waldbrölkirche
Description: Офіційна тема церкви Waldbrölkirche — світлий, мінімалістичний дизайн з золотими акцентами.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: waldbrölkirche
*/

/* ===== CSS ЗМІННІ ===== */
:root {
  --gold: #B8975A;
  --gold-light: #D4B47A;
  --cream: #FAF8F4;
  --dark: #1C1C1A;
  --mid: #5C5852;
  --light: #F0EDE6;
  --white: #FFFFFF;
  --border: #E8E4DB;
}

/* ===== БАЗОВІ СТИЛІ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ===== НАВІГАЦІЯ ===== */
#site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.site-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dark);
}

.site-logo span { color: var(--gold); }

.header-home-btn {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    padding: 8px 18px;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}

.header-home-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Приховати шапку тільки на головній сторінці на мобільному */
@media (max-width: 600px) {
    .home #site-header { display: none; }
}

/* ===== HERO ===== */
.hero-section {
  background: var(--dark);
  color: var(--white);
  padding: 7rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: 580px;
  position: relative;
  overflow: hidden;
}

.hero-cross {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 320px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-title {
  font-size: 58px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-text {
  color: #B0ADA6;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 13px 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold-light); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--gold); color: var(--white); }

/* ===== INFO CARD (HERO) ===== */
.hero-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2.2rem;
}

.hero-info-card h3 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.info-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-of-type { padding-top: 0; }

.info-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  color: #D0CCC5;
}

/* ===== ЗАГАЛЬНІ СЕКЦІЇ ===== */
.section { padding: 5.5rem 4rem; }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }
.section-linen { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }

.section-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.section-title {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--mid);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.85;
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: #A0A09A; }

/* ===== НОВИНИ ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.news-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-card-img-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #EAE4D8, #D8CEBC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: rgba(184,151,90,0.35);
  font-family: 'Cormorant Garamond', serif;
}

.news-card-body { padding: 1.6rem; }

.news-card-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.news-card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
}

.news-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ===== ПРОПОВІДІ ===== */
.sermons-list { margin-top: 2.5rem; }

.sermon-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.sermon-item:first-child { border-top: 1px solid var(--border); }

.sermon-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  color: #D4C9B0;
  font-weight: 300;
  text-align: right;
  line-height: 1;
}

.sermon-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.sermon-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.sermon-play {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sermon-item:hover .sermon-play {
  background: var(--gold);
  border-color: var(--gold);
}

.play-triangle {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--mid);
  margin-left: 3px;
  transition: border-left-color 0.2s;
}

.sermon-item:hover .play-triangle { border-left-color: var(--white); }

/* ===== ВБУДОВАНЕ ВІДЕО В ПРОПОВІДЯХ ===== */
.sermon-item-wrap {
    border-bottom: 1px solid var(--border);
}

.sermon-item-wrap .sermon-item {
    border-bottom: none;
}

.sermon-item-wrap:first-child .sermon-item {
    border-top: 1px solid var(--border);
}

.sermon-video-wrap {
    display: none;
    background: #000;
    width: 100%;
}

.sermon-video-wrap.is-open {
    display: block;
}

.sermon-video-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.sermon-video-inner iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.sermon-video-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sermon-video-close,
.sermon-video-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
}

.sermon-video-close {
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.sermon-video-close:hover {
    background: rgba(80,80,80,0.85);
}

.sermon-video-yt {
    background: rgba(255,0,0,0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.sermon-video-yt:hover {
    background: rgba(200,0,0,0.95);
    color: #fff;
}

@media (max-width: 600px) {
    .sermon-video-actions { top: 8px; right: 8px; gap: 6px; }
    .sermon-video-close, .sermon-video-yt { padding: 5px 10px; font-size: 11px; }
}

/* ===== ПРО НАС ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #EAE4D8, #D8CEBC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: rgba(184,151,90,0.25);
  font-family: 'Cormorant Garamond', serif;
}

.about-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 12px; }

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--mid);
}

.about-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* ===== КОНТАКТИ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.contact-card h4 {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-card p { font-size: 14px; color: #A0A09A; line-height: 1.8; }

/* ===== ФУТЕР ===== */
#site-footer { background: #141412; color: #888; }

.footer-top { padding: 4rem 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.footer-logo span { color: var(--gold); }

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.2rem;
}

.footer-social { display: flex; gap: 10px; margin-top: 0.5rem; }

.footer-social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.2s, border-color 0.2s;
}

.footer-social-btn:hover { color: var(--gold); border-color: var(--gold); }

.footer-col-title {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    color: #777;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-schedule {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-schedule li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-day {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
}

.schedule-time { font-size: 14px; color: #aaa; }

.footer-map-link {
    font-size: 13px;
    color: #777;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    line-height: 1.5;
}

.footer-map-link:hover { color: var(--gold); }

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts a {
    font-size: 13px;
    color: #777;
    transition: color 0.2s;
}

.footer-contacts a:hover { color: var(--white); }

.footer-bottom {
    padding: 1.5rem 3rem;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #444;
}

@media (max-width: 900px) {
    .footer-top { padding: 3rem 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { padding: 1.2rem; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.85; }

/* ===== ОДИНОЧНІ ПОСТИ ===== */
.single-post-header {
  background: var(--dark);
  color: var(--white);
  padding: 4rem;
}

.single-post-header .post-date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.single-post-header h1 {
  font-size: 44px;
  font-weight: 300;
  color: var(--white);
  max-width: 700px;
}

.single-post-content {
  padding: 4rem;
  max-width: 760px;
  background: var(--white);
}

.single-post-content p { margin-bottom: 1.5rem; }
.single-post-content h2 { font-size: 28px; margin: 2rem 0 1rem; }
.single-post-content h3 { font-size: 22px; margin: 1.5rem 0 0.8rem; }
.single-post-content img { width: 100%; margin: 2rem 0; }

.tg-question-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #24a1de;
    color: var(--white);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.tg-question-btn:hover { background: #1a8bc4; color: var(--white); }

/* ===== СОЦМЕРЕЖІ ===== */
.social-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.social-btn:hover { color: var(--white); }
.social-tg:hover  { background: rgba(36,161,222,0.25); border-color: #24a1de; }
.social-yt:hover  { background: rgba(255,0,0,0.2); border-color: #ff0000; }
.social-ig:hover  { background: rgba(225,48,108,0.2); border-color: #e1306c; }

.contact-sublabel {
    color: #888;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== ПЛИТКИ РОЗДІЛІВ ===== */
.tiles-section {
    background: var(--cream);
    padding: 3rem 4rem;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tile {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    text-decoration: none;
    color: var(--dark);
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    border-color: var(--gold);
    color: var(--dark);
}

.tile-icon { font-size: 26px; color: var(--gold); line-height: 1; }

.tile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.tile-gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.tile-gold .tile-icon { color: var(--white); }
.tile-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }

/* ===== ПЛИТКИ З ФОТОГРАФІЯМИ ===== */
.tile-has-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 180px;
    padding: 0;
    overflow: hidden;
    border: none;
    justify-content: flex-end;
    align-items: flex-start;
}

.tile-has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
    transition: background 0.22s;
    z-index: 1;
}

.tile-has-photo:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.30) 60%, transparent 100%);
}

.tile-has-photo .tile-title {
    position: relative;
    z-index: 2;
    color: #fff !important;
    font-size: 17px;
    font-weight: 500;
    padding: 1rem 1.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.50);
    margin: 0;
}

.tile-has-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    border-color: transparent;
    color: #fff;
}

.tile-has-photo.tile-gold::after {
    background: linear-gradient(to top, rgba(166,131,78,0.88) 0%, rgba(166,131,78,0.28) 60%, transparent 100%);
}

/* Hero — по центру, одна колонка */
.hero-section { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-text { margin-left: auto; margin-right: auto; }
.hero-buttons { justify-content: center; }
.hero-info-card { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
.hero-cross { display: none; }

/* ===== МОБІЛЬНИЙ ===== */
.menu-toggle { display: none; }

@media (max-width: 900px) {
  #site-header { padding: 0 1.2rem; height: 54px; }

  .tiles-section { padding: 2rem 1.2rem; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .tile { padding: 1.5rem 1rem; }
  .tile-title { font-size: 15px; }
  .tile-has-photo { min-height: 200px; }
  .tile-has-photo .tile-title { font-size: 15px; padding: 0.85rem 1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 3rem 1.2rem; }
  .single-post-header, .single-post-content { padding: 2rem 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 3rem 1.2rem; }
  .hero-title { font-size: 34px; }
  .news-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; align-items: center; }
}
