/*
Theme Name: Leerhuis Limburg
Theme URI: https://leerhuislimburg.nl
Author: Leerhuis Limburg
Author URI: https://leerhuislimburg.nl
Description: Custom theme for Leerhuis Limburg — Jewish educational organization in Limburg, Netherlands.
Version: 1.0.8
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leerhuis-limburg
*/

/* ── CSS Variables ── */
:root {
    --ll-green: #2a6b35;
    --ll-green-light: #e8f2ea;
    --ll-blue: #1a3f6f;
    --ll-blue-light: #e6edf6;
    --ll-gold: #8b7335;
    --ll-gold-light: #f5f0e4;
    --ll-text: #1a1a1a;
    --ll-text-secondary: #555;
    --ll-text-muted: #888;
    --ll-border: #e0ddd6;
    --ll-border-light: #eceae4;
    --ll-bg: #faf9f6;
    --ll-card: #ffffff;
    --ll-radius: 4px;
    --ll-shadow-subtle: 0 1px 4px rgba(0,0,0,0.04);
    --ll-shadow-card: 0 2px 12px rgba(0,0,0,0.05);
    --ll-shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
    --ll-transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Base ── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ll-text);
    background: var(--ll-bg);
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
    line-height: 1.7;
    position: relative;
}

/* ── Background bleed: full-width synagogue ── */
.bg-bleed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-bleed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/images/synagogue2.jpg') center top / cover no-repeat;
    background-attachment: fixed;
    opacity: 1.0;
    filter: saturate(0.75);
}

.bg-bleed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--ll-bg));
}

/* ── Site wrapper ── */
.wp-site-blocks {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 0 0 1px var(--ll-border-light), 0 4px 32px rgba(0,0,0,0.06);
    backdrop-filter: blur(2px);
}

/* ── Header ── */
.site-header {
    position: relative;
    overflow: hidden;
    padding: 64px 56px 52px;
    background: #152d4a;
}

.site-header-bg {
    position: absolute;
    inset: 0;
    background: url('assets/images/synagogue2.jpg') center top / cover no-repeat;
    background-attachment: fixed;
    opacity: 0.50;
    filter: saturate(0.75) contrast(1.1);
    z-index: 0;
}

.site-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(12,26,46,0.10) 0%,
        rgba(12,26,46,0.40) 70%,
        rgba(12,26,46,0.55) 100%);
}

.site-header .header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header .header-inner > * {
    margin-block: 0;
}

.site-header .header-logo.wp-block-image {
    margin: 0;
}

.site-header .header-logo {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)) brightness(1.05);
}

.site-header .header-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

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

.site-header .header-title .green {
    color: #8fd49a;
}

.site-header .header-title .blue {
    color: #a3c4e8;
}

.site-header .tagline {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: 88px;
    line-height: 1.6;
    max-width: 500px;
    letter-spacing: 0.01em;
}

.site-header .header-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--ll-green), var(--ll-blue));
    z-index: 1;
}

/* ── Navigation ── */
.site-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ll-border);
    padding: 0 48px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav .wp-block-navigation {
    gap: 0;
}

.site-nav .wp-block-navigation__container {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.site-nav .wp-block-navigation a,
.site-nav .wp-block-navigation .wp-block-navigation-item__content,
.site-nav .wp-block-navigation__container a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: normal;
    color: var(--ll-text-secondary);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color var(--ll-transition), border-color var(--ll-transition);
}

.site-nav .wp-block-navigation a:hover,
.site-nav .wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--ll-blue);
    border-bottom-color: var(--ll-blue);
}

/* ── Page body: two-column layout ── */
.page-body {
    display: flex;
    min-height: calc(100vh - 280px);
}

.page-sidebar {
    width: 220px;
    min-width: 220px;
    background: rgba(250,249,246,0.7);
    border-right: 1px solid var(--ll-border-light);
}

.page-content {
    flex: 1;
    padding: 48px 52px;
    min-width: 0;
}

/* ── Article / post styling ── */
.page-content .wp-block-post {
    margin-bottom: 48px;
}

.page-content .entry-title,
.page-content h2.wp-block-post-title {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--ll-text);
}

.page-content .entry-title a,
.page-content h2.wp-block-post-title a {
    color: var(--ll-text);
    text-decoration: none;
}

.page-content .entry-content p,
.page-content .wp-block-post-content p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 8px;
    color: var(--ll-text-secondary);
}

/* Featured image */
.page-content .wp-block-post-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--ll-radius);
    box-shadow: var(--ll-shadow-card);
    margin-bottom: 24px;
}

.page-content .wp-block-post-featured-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-content .wp-block-post-featured-image:hover img {
    transform: scale(1.02);
}

/* Labels */
.label {
    font-weight: bold;
    color: var(--ll-blue);
    text-decoration: none;
}

/* Registration block */
.registration {
    margin-top: 28px;
    padding: 24px 28px;
    background: var(--ll-gold-light);
    border-left: 3px solid var(--ll-gold);
    font-size: 15px;
    line-height: 1.85;
    color: var(--ll-text);
}

/* Article divider */
.article-divider,
.page-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ll-border) 20%, var(--ll-border) 80%, transparent);
    margin: 0 0 48px;
}

/* Secondary article */
.article-secondary h2 {
    font-size: 24px;
    color: var(--ll-blue);
    font-weight: normal;
    font-style: italic;
}

/* ── Footer ── */
.site-footer {
    padding: 36px 52px 24px;
    border-top: 1px solid var(--ll-border);
}

.site-footer .footer-content {
    padding: 0;
}

.site-footer p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
    color: var(--ll-text-muted);
}

.site-footer a {
    color: var(--ll-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--ll-transition);
}

.site-footer a:hover {
    border-bottom-color: var(--ll-blue);
}

.site-footer .footer-small {
    font-size: 13px;
    color: #aaa;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ll-border-light);
}

.site-footer .footer-small a {
    color: #aaa;
}

.site-footer .footer-small a:hover {
    color: var(--ll-blue);
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .site-header {
        padding: 32px 20px 28px;
    }

    .site-header .header-inner {
        gap: 14px;
    }

    .site-header .header-title {
        font-size: 32px;
    }

    .site-header .header-logo {
        width: 40px;
    }

    .site-header .tagline {
        font-size: 13px;
        margin-left: 0;
        margin-top: 14px;
    }

    .site-nav {
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav .wp-block-navigation,
    .site-nav .wp-block-navigation__container {
        flex-wrap: nowrap;
    }

    .site-nav .wp-block-navigation a,
    .site-nav .wp-block-navigation .wp-block-navigation-item__content,
    .site-nav .wp-block-navigation__container a {
        padding: 10px 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    .page-body {
        flex-direction: column;
    }

    .page-sidebar {
        display: none;
    }

    .page-content {
        padding: 24px 20px;
    }

    .page-content .entry-title,
    .page-content h2.wp-block-post-title {
        font-size: 22px;
    }

    .page-content .wp-block-post-featured-image img {
        height: 180px;
    }

    .site-footer {
        padding: 24px 20px 16px;
    }

    .site-footer p {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .site-header .header-title {
        font-size: 26px;
    }

    .site-header .header-logo {
        width: 34px;
    }
}
