/* =====================================================================
   JJ Textile — Homepage Content Sections
   Widened container + three new sections: Shop All intro, full-width
   feature banner, and a 3-column feature grid.
   ===================================================================== */

/* ---- Widen the page container on large screens ----
   Flatsome's default container/row max-width is 1080px, which leaves
   huge gutters on wide monitors. Scoped to the homepage (.home body
   class) so other pages/templates are unaffected. */
.home .container,
.home .container-width,
.home .row {
    max-width: 1400px;
}
@media screen and (min-width: 1600px) {
    .home .container,
    .home .container-width,
    .home .row {
        max-width: 1700px;
    }
}
@media screen and (min-width: 2000px) {
    .home .container,
    .home .container-width,
    .home .row {
        max-width: 2000px;
    }
}

/* =====================================================================
   Section 1 — "Shop All" intro
   Headline above, then a row: left image bleeds to the browser's left
   edge, right column holds headline + text + CTA.
   ===================================================================== */
.jjt-shopall {
    padding: 4rem 0;
}

.jjt-shopall__heading {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 3rem;
    letter-spacing: 0.02em;
}

.jjt-shopall__row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.jjt-shopall__image-col {
    flex: 1 1 50%;
    min-width: 300px;
    /* Break out of the container to the browser's left edge */
    margin-left: calc(50% - 50vw);
    position: relative;
}

.jjt-shopall__image-col img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.jjt-shopall__text-col {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5%;
}

.jjt-shopall__text-col h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 1rem;
}

.jjt-shopall__text-col p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1.75rem;
    max-width: 48ch;
}

@media (max-width: 767px) {
    .jjt-shopall__image-col,
    .jjt-shopall__text-col {
        flex: 1 1 100%;
    }
    .jjt-shopall__image-col img { min-height: 260px; }
    .jjt-shopall__text-col { padding: 2rem 6%; }
}

/* =====================================================================
   Section 2 — Full-width feature banner
   Full-bleed image with text + CTA overlaid on top.
   ===================================================================== */
.jjt-feature-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jjt-feature-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jjt-feature-banner__overlay {
    /* Darkening removed per client request — heading/text below carry
       their own text-shadow to stay legible over the photo instead. */
    display: none;
}

.jjt-feature-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 640px;
}

.jjt-feature-banner__content h3 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.jjt-feature-banner__content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
    .jjt-feature-banner { min-height: 50vh; }
}

/* =====================================================================
   Section 3 — Three-column feature grid
   Image, headline + text, CTA button beneath each.
   ===================================================================== */
.jjt-three-col {
    padding: 4rem 0;
}

.jjt-three-col__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.jjt-three-col__item {
    display: flex;
    flex-direction: column;
}

.jjt-three-col__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.jjt-three-col__item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.jjt-three-col__item p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

@media (max-width: 991px) {
    .jjt-three-col__grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- Shared CTA button style across these sections ---- */
.jjt-cta-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.8rem 1.75rem;
    background: var(--jjt-hero-accent, #c9a15a);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jjt-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.jjt-feature-banner__content .jjt-cta-btn {
    align-self: center;
}
