/*
 * Journal Page — Magazine-style blog layout
 * Luxurious Dwelling
 */

/* ─── Variables ─── */
:root {
    --journal-gold: #D4AF37;
    --journal-black: #1A1A1A;
    --journal-cream: #F9F8F4;
    --journal-grey: #8C8C8C;
}

/* ─── Woodmart Overrides for full-width sections ─── */
.page-id-252 .main-page-wrapper {
    padding-top: 0 !important;
}

.page-id-252 .wd-content-layout,
.page-id-252 .container,
.page-id-252 .site-content .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hide default Woodmart page title on journal page */
.page-id-252 .page-title,
.page-id-252 .woodmart-page-title,
.page-id-252 .wd-page-title {
    display: none !important;
}

/* Let our wrapper control the layout */
.page-id-252 .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-id-252 .wd-sidebar {
    display: none !important;
}

.page-id-252 .site-content .row {
    margin: 0 !important;
}

.page-id-252 .col-lg-9,
.page-id-252 .col-md-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ─── Journal Wrapper ─── */
.lxd-journal-wrap {
    background-color: var(--journal-cream);
}

/* ─── Typography ─── */
.journal-title-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.journal-title-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
}

.journal-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--journal-gold);
    margin-bottom: 1rem;
    display: block;
}

/* ─── 1. Filter Bar ─── */
.journal-filter {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--journal-cream);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

.journal-filter.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.journal-filter a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--journal-grey);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.journal-filter a.active,
.journal-filter a:hover {
    color: var(--journal-black);
}

.journal-filter a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--journal-gold);
}

/* ─── 2. Hero / Cover Story ─── */
.journal-hero {
    height: 85vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.journal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: subtleZoom 20s infinite alternate;
}

@keyframes subtleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.journal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

.journal-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
    padding-left: 5%;
}

.journal-hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.journal-hero-cat {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block !important;
    padding-bottom: 5px;
}

.journal-hero-excerpt {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.journal-btn-hero {
    display: inline-block;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.journal-btn-hero:hover {
    background-color: #fff;
    color: var(--journal-black);
    border-color: #fff;
}

/* ─── 3. The Edit (3-Column Grid) ─── */
.journal-section {
    padding: 80px 5%;
}

.section-header-cnt {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-cnt h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--journal-black);
}

.section-header-cnt p,
.section-header-cnt .journal-title-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--journal-grey);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.journal-card {
    cursor: pointer;
}

.journal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.journal-card-img {
    height: 350px;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #eee;
}

.journal-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.journal-card:hover .journal-card-img img {
    transform: scale(1.05);
}

.journal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.25;
    transition: color 0.3s ease;
    color: var(--journal-black);
}

.journal-card:hover h3 {
    color: var(--journal-gold);
}

.read-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--journal-black);
    border-bottom: 1px solid var(--journal-gold);
    padding-bottom: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-link:hover {
    color: var(--journal-gold);
}

/* ─── 4. Deep Dives (Z-Pattern) ─── */
.journal-deep-section {
    background-color: #fff;
}

.journal-feature {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.journal-feature:last-of-type {
    margin-bottom: 0;
}

.journal-feature.reverse {
    flex-direction: row-reverse;
}

.feature-img-cnt {
    flex: 1.2;
    height: 600px;
    position: relative;
}

.feature-img-cnt::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: -1;
    transition: transform 0.5s ease;
}

.journal-feature:hover .feature-img-cnt::after {
    transform: translate(5px, 5px);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-content {
    flex: 1;
    padding: 0 20px;
}

.feature-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--journal-black);
}

.feature-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    font-weight: 300;
}

/* ─── 5. Newsletter ─── */
.journal-newsletter {
    background-color: var(--journal-black) !important;
    color: #fff;
    text-align: center;
    padding: 120px 20px !important;
}

.journal-newsletter h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.journal-newsletter-sub {
    font-size: 1.5rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 40px;
}

.journal-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.journal-newsletter-form input[type="email"] {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.journal-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.journal-newsletter-form button {
    background: none;
    border: none;
    color: var(--journal-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 15px 20px;
    transition: color 0.3s ease;
}

.journal-newsletter-form button:hover {
    color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .journal-hero-content h1 {
        font-size: 3.5rem;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .journal-feature {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 80px;
    }

    .feature-img-cnt {
        height: 400px;
        width: 100%;
    }

    .feature-img-cnt::after {
        display: none;
    }

    .feature-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .journal-filter {
        gap: 20px;
        padding: 20px 15px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .journal-filter::-webkit-scrollbar {
        display: none;
    }

    .journal-filter a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .journal-section {
        padding: 60px 4%;
    }

    .journal-hero-content {
        padding-left: 4%;
        padding-right: 4%;
    }

    .section-header-cnt h2 {
        font-size: 2rem;
    }

    .journal-card h3 {
        font-size: 1.5rem;
    }

    .journal-newsletter h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .journal-hero {
        height: 60vh;
        min-height: 450px;
        padding-bottom: 50px;
    }

    .journal-hero-content h1 {
        font-size: 2.5rem;
    }

    .journal-hero-excerpt {
        font-size: 1rem;
    }

    .journal-btn-hero {
        padding: 12px 30px;
        font-size: 0.7rem;
    }

    .journal-newsletter-form {
        flex-direction: column;
        border-bottom: none;
    }

    .journal-newsletter-form input[type="email"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center;
    }

    .journal-newsletter-form button {
        padding-top: 20px;
    }
}
