/* ==========================================================================
   Front Page — Homepage Styles
   Parallax via CSS background-attachment:fixed on cover blocks.
   The <img> inside wp:cover is hidden; background-image set via CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.jk-home {
    font-family: 'Open Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   Intro / white sections
   -------------------------------------------------------------------------- */
.jk-intro {
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.jk-section {
    padding: 5rem 2rem;
}

.jk-section--light {
    background: #fff;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.jk-section__heading {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
}

.jk-section--light .jk-section__heading,
.jk-intro .jk-section__heading {
    color: #1e293b;
}

.jk-section__heading--centered {
    text-align: center;
}

.jk-section__sub {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.jk-section__intro {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1rem;
}

.jk-tagline {
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: #1e293b;
    margin-top: 0.5rem;
}

.jk-brands {
    font-size: 0.95rem;
    line-height: 2.1;
    color: #475569;
}

.jk-address {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 1rem;
    line-height: 1.7;
}

.jk-address a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   PARALLAX COVER BLOCKS
   JS-based parallax. Images scaled up 40% for bleed area.
   -------------------------------------------------------------------------- */

/* Remove WP's default 1em padding on covers we control */
.jk-cover-split,
.jk-cover-full {
    padding: 0 !important;
}

/* Scale images up so parallax never reveals empty space */
.jk-cover-split .wp-block-cover__image-background,
.jk-cover-full .wp-block-cover__image-background {
    width: 130% !important;
    height: 130% !important;
    max-width: none !important;
    max-height: none !important;
    top: -15% !important;
    left: -15% !important;
    object-fit: cover !important;
}

/* --------------------------------------------------------------------------
   Inner container — stretch to full height of the cover, no padding
   -------------------------------------------------------------------------- */
.jk-cover-split > .wp-block-cover__inner-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-self: stretch;
}

/* --------------------------------------------------------------------------
   Split columns — stretch to fill cover height, no gap
   -------------------------------------------------------------------------- */
.jk-cover-split .jk-split-cols {
    width: 100%;
    flex: 1;
    gap: 0 !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

.jk-cover-split .jk-split-cols > .wp-block-column {

}

/* Image column — fully transparent so fixed bg shows through */
.jk-split-col--image {
    background: transparent !important;
    min-height: 420px;
    /* Ensure column stretches to match text column height */
    display: flex;
}

/* Text column — dark semi-transparent panel, flush to edges */
/* WP renders the column div itself as .jk-split-col--text.is-layout-flow */
.jk-split-col--text,
.jk-split-col--text.is-layout-flow,
.jk-split-col--text.wp-block-column-is-layout-flow {
    background: rgba(12, 22, 36, 0.86) !important;
    padding: 4rem 3.5rem !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    margin: 0 !important;
    box-sizing: border-box;
}

.jk-split-col--text p,
.jk-split-col--text li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 0.65rem;
}

.jk-split-col--text strong {
    color: #fff;
}

.jk-split-col--text em {
    color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   Benefits list
   -------------------------------------------------------------------------- */
.jk-benefits__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 0 !important;
}

.jk-benefits__list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.6rem;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.975rem !important;
    line-height: 1.6;
}

.jk-benefits__list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.38);
}

/* --------------------------------------------------------------------------
   Button inside dark panel
   -------------------------------------------------------------------------- */
.jk-split-col--text .wp-block-button__link {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.65rem 1.75rem !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.jk-split-col--text .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #fff !important;
}

/* --------------------------------------------------------------------------
   Full-cover centered (last section)
   -------------------------------------------------------------------------- */
.jk-cover-full .wp-block-cover__inner-container {
    text-align: center;
}

.jk-cover-full p {
    color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------------
   Latest News section (appended by front-page.php)
   -------------------------------------------------------------------------- */
.jk-news-section {
    padding: 4rem 2rem 5rem;
    background: #fff;
}

.jk-news-section .jk-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jk-news-section .jk-section__heading--centered {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
}

.jk-section__more {
    text-align: center;
    margin-top: 2.5rem;
}

.jk-section__more a {
    display: inline-block;
    padding: 0.7rem 2.25rem;
    background: #1e293b;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.jk-section__more a:hover {
    background: #2563eb;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .jk-section__heading {
        font-size: 1.9rem;
    }

    .jk-split-col--text {
        padding: 3rem 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .jk-cover-split .jk-split-cols {
        flex-direction: column !important;
    }

    .jk-split-col--image {
        min-height: 200px;
    }

    .jk-split-col--text {
        padding: 2.5rem 1.5rem !important;
    }

    .jk-section__heading {
        font-size: 1.6rem;
    }

    .jk-section,
    .jk-intro {
        padding: 3rem 1.5rem;
    }
}
