
/*
Theme Name: Russische Orthodoxe Kirche in Frankfurt am Main Theme
Theme URI: https://orthodoxekirche.org
Author: Vladislav Kaplan
Description: Russische Orthodoxe Kirche in Frankfurt am Main of Saints Cyprian and Justina.
Version: 1.0
*/

:root {
    --color-maroon: #6d1f1f;
    --color-maroon-dark: #3a1a1a;
    --color-gold: #d4b06a;
    --color-gold-light: #f0d9a7;
    --color-cream: #f7f1e6;
    --color-text: #3a2a1d;
    --color-white: #ffffff;
    --radius: 8px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, serif;
    background: var(--color-cream);
    color: var(--color-text);
}

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

a {
    color: inherit;
}

/* ==================== HEADER ==================== */

header {
    background: #6b6b6b;
    color: var(--color-white);
    padding: 16px 20px 12px;
}

.header-top {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-brand {
    max-width: var(--max-width);
    margin: 10px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-brand-text {
    text-align: left;
}

.header-brand img.saints-icon {
    width: 90px;
    height: auto;
    border-radius: 6px;
    border: 2px solid var(--color-gold);
    flex-shrink: 0;
}

.topline {
    font-size: 14px;
    color: var(--color-gold-light);
    margin: 0 0 4px;
}

.site-title {
    text-align: center;
    font-size: 34px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0;
}

.site-title-detail {
    text-align: center;
    font-size: 20px;
    font-weight: normal;
    text-transform: none;
    margin: 4px 0 0;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-subtitle {
    text-align: center;
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--color-gold-light);
}

.language-switcher {
    font-size: 14px;
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-switcher a {
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}

.language-switcher a.current-lang,
.language-switcher .current-lang a {
    background: var(--color-gold);
    color: var(--color-maroon-dark);
    font-weight: bold;
}

.header-search input[type="search"] {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--color-white);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
}

.header-search input[type="search"]::placeholder {
    color: var(--color-gold-light);
}

/* ==================== NAV ==================== */

.menu-toggle {
    display: none;
    background: var(--color-maroon);
    color: var(--color-white);
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

nav.primary-nav {
    background: var(--color-maroon);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-cta {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-maroon-dark) !important;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 18px;
    margin: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
}

nav.primary-nav li {
    position: relative;
}

nav.primary-nav a {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    padding: 14px 16px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

nav.primary-nav li:hover > a,
nav.primary-nav a:focus {
    background: var(--color-maroon-dark);
}

nav.primary-nav ul ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--color-maroon-dark);
    min-width: 220px;
    z-index: 20;
    flex-direction: column;
}

nav.primary-nav li:hover > ul {
    display: flex;
}

nav.primary-nav ul ul a {
    padding: 12px 16px;
    font-weight: normal;
}

/* ==================== LAYOUT ==================== */

.section {
    max-width: var(--max-width);
    margin: auto;
    padding: 40px 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
    align-items: start;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-gold);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--radius);
}

.card h2 {
    margin-top: 0;
    font-size: 20px;
    color: var(--color-maroon);
}

/* ==================== HERO ==================== */

.hero {
    position: relative;
    padding: 0;
    text-align: center;
    color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
}

.hero img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

.hero-caption h2 {
    margin: 0;
    font-size: 28px;
}

/* ==================== SCHEDULE ==================== */

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.schedule-item .time {
    font-weight: bold;
    font-size: 17px;
}

/* ==================== ORTHODOX CALENDAR WIDGET ==================== */

.pravoslavie-calendar-widget {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.pravoslavie-calendar-widget img {
    max-width: 100%;
    height: auto;
}

/* ==================== NEWS ==================== */

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-card {
    background: var(--color-white);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.news-card .news-card-body {
    padding: 12px;
}

.news-card h3 {
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.news-card .news-date {
    font-size: 12px;
    color: #8a6a3a;
}

/* ==================== DONATE + CONTACTS ==================== */

.support-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

.donate-button {
    display: inline-block;
    background: var(--color-maroon);
    color: var(--color-white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
}

.directions-button {
    display: inline-block;
    background: var(--color-maroon-dark);
    color: var(--color-white);
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 12px;
    font-weight: bold;
}

.contacts-map img {
    border-radius: var(--radius);
    border: 1px solid var(--color-gold);
}

/* ==================== FOOTER ==================== */

footer {
    background: var(--color-maroon-dark);
    color: var(--color-white);
}

.footer-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-icons a {
    display: block;
    text-decoration: none;
    color: var(--color-white);
    text-align: center;
}

.footer-icons .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--color-gold-light);
}

/* ==================== INNER PAGES ==================== */

.main-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    color: var(--color-maroon);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-contacts {
        grid-template-columns: 1fr;
    }

    .footer-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 24px;
    }

    .header-brand {
        flex-direction: column;
    }

    .header-brand-text {
        text-align: center;
    }

    .header-brand img.saints-icon {
        width: 60px;
    }

    .menu-toggle {
        display: block;
    }

    nav.primary-nav {
        display: none;
    }

    nav.primary-nav.open {
        display: block;
    }

    nav.primary-nav ul {
        flex-direction: column;
    }

    nav.primary-nav ul ul {
        position: static;
        display: block;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
