/* ═══════════════════════════════════════════════════════
   Jacobs Cake World — Premium About Page Stylesheet
   Luxury Editorial Layout matching mockup exactly
   ═══════════════════════════════════════════════════════ */

.jcw-about-page {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    color: var(--jcw-text, #2D1A10) !important;
    line-height: 1.6 !important;
}


.jcw-about-section {
    padding: 60px 0 !important;
}

/* ── 1. STORY SPLIT SECTION ── */
.jcw-about-story-section {
    padding-top: 40px !important;
}

.jcw-about-story-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    align-items: center !important;
}

@media (min-width: 992px) {
    .jcw-about-story-grid {
        grid-template-columns: 1.1fr 1fr !important;
        gap: 60px !important;
    }
}

.jcw-about-story-image-wrap {
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(58, 36, 24, 0.06) !important;
    border: 1px solid var(--jcw-border, #EADFD2) !important;
}

.jcw-about-story-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.jcw-about-story-image-wrap:hover .jcw-about-story-img {
    transform: scale(1.03) !important;
}

/* Typography matching mockup */
.jcw-about-pretitle {
    display: inline-block !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--jcw-secondary, #D8A24A) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid var(--jcw-secondary, #D8A24A) !important;
    padding-bottom: 3px !important;
}

.jcw-about-main-title {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
}

@media (max-width: 768px) {
    .jcw-about-main-title {
        font-size: 2.2rem !important;
    }
}

.jcw-about-story-content {
    font-size: 0.98rem !important;
    color: var(--jcw-text, #2D1A10) !important;
    margin-bottom: 28px !important;
}

.jcw-about-story-content p {
    margin-bottom: 16px !important;
    line-height: 1.7 !important;
}

.jcw-about-story-btn {
    background-color: var(--jcw-primary, #3A2418) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(58, 36, 24, 0.1) !important;
}

.jcw-about-story-btn:hover {
    background-color: var(--jcw-secondary, #D8A24A) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 18px rgba(216, 162, 74, 0.25) !important;
}

/* ── 2. STATS GRID SECTION ── */
.jcw-about-stats-section {
    background-color: transparent !important;
}

.jcw-about-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

@media (min-width: 992px) {
    .jcw-about-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

.jcw-stat-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    border: 1px solid var(--jcw-border, #EADFD2) !important;
    box-shadow: 0 4px 20px rgba(58, 36, 24, 0.02) !important;
    transition: all 0.3s ease !important;
}

.jcw-stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(58, 36, 24, 0.06) !important;
    border-color: var(--jcw-secondary, #D8A24A) !important;
}

.jcw-stat-icon-wrap {
    color: var(--jcw-secondary, #D8A24A) !important;
    margin-bottom: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.jcw-stat-number {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

.jcw-stat-label {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--jcw-text, #2D1A10) !important;
}

/* ── 3. FEATURES ROW SECTION ── */
.jcw-about-features-section {
    background-color: transparent !important;
}

/* Centered Header Row with Lines */
.jcw-about-section-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 45px !important;
}

.jcw-about-header-line {
    flex-grow: 1 !important;
    max-width: 150px !important;
    height: 1px !important;
    background-color: var(--jcw-border, #EADFD2) !important;
}

.jcw-about-section-title-centered {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--jcw-secondary, #D8A24A) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    text-align: center !important;
}

.jcw-about-features-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
}

@media (min-width: 768px) {
    .jcw-about-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .jcw-about-features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0 !important;
    }
}

.jcw-feature-col {
    padding: 20px 24px !important;
    text-align: center !important;
    position: relative !important;
}

/* Vertical divider lines on desktop */
@media (min-width: 992px) {
    .jcw-feature-col:not(:last-child)::after {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 20% !important;
        height: 60% !important;
        width: 1px !important;
        background-color: var(--jcw-border, #EADFD2) !important;
    }
}

.jcw-feature-icon-wrap {
    color: var(--jcw-secondary, #D8A24A) !important;
    margin-bottom: 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.jcw-feature-title {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    margin: 0 0 10px 0 !important;
}

.jcw-feature-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    color: var(--jcw-text, #2D1A10) !important;
    margin: 0 !important;
}

/* ── 4. TESTIMONIALS SECTION ── */
.jcw-about-testimonials-section {
    background-color: transparent !important;
}

.jcw-about-testimonials-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.jcw-about-pretitle-centered {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--jcw-secondary, #D8A24A) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.jcw-about-section-title-large {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

.jcw-testimonials-slider-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.jcw-testimonials-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .jcw-testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .jcw-testimonials-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.jcw-testimonial-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    border: 1px solid var(--jcw-border, #EADFD2) !important;
    box-shadow: 0 4px 15px rgba(58, 36, 24, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
    transition: all 0.3s ease !important;
}

.jcw-testimonial-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(58, 36, 24, 0.05) !important;
    border-color: var(--jcw-secondary, #D8A24A) !important;
}

.jcw-t-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    width: 100% !important;
}

.jcw-t-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.jcw-t-meta {
    display: flex !important;
    flex-direction: column !important;
}

.jcw-t-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    margin: 0 0 2px 0 !important;
}

.jcw-t-stars {
    display: flex !important;
    gap: 2px !important;
    color: #F4B400 !important;
    /* Google Yellow */
}

.jcw-t-platform-icon {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #4285F4 !important;
    /* Google Blue */
}

.jcw-t-quote {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    color: var(--jcw-text, #2D1A10) !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    font-style: italic !important;
}

/* Nav Arrows (Standard mockup aesthetic, hidden on mobile for touch swipe) */
.jcw-slider-arrow {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 1px solid var(--jcw-border, #EADFD2) !important;
    color: var(--jcw-primary, #3A2418) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    flex-shrink: 0 !important;
}

@media (min-width: 992px) {
    .jcw-slider-arrow {
        display: inline-flex !important;
    }
}

.jcw-slider-arrow:hover {
    background-color: var(--jcw-primary, #3A2418) !important;
    color: #ffffff !important;
    border-color: var(--jcw-primary, #3A2418) !important;
}

/* ── 5. CALL TO ACTION SECTION ── */
.jcw-about-cta-section {
    padding-top: 40px !important;
    padding-bottom: 80px !important;
}

.jcw-about-cta-card {
    background-color: #FAF5F0 !important;
    /* Soft mockup warm beige */
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid var(--jcw-border, #EADFD2) !important;
    box-shadow: 0 10px 40px rgba(58, 36, 24, 0.03) !important;
    position: relative !important;
}

.jcw-about-cta-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: center !important;
}

@media (min-width: 992px) {
    .jcw-about-cta-card {
        height: 360px !important;
        /* Fixed height for exact mockup aspect ratio */
    }

    .jcw-about-cta-grid {
        display: flex !important;
        flex-direction: row !important;
        height: 100% !important;
        width: 100% !important;
    }
}

.jcw-about-cta-text-col {
    padding: 40px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .jcw-about-cta-text-col {
        width: 65% !important;
        flex: none !important;
        padding: 45px 55px !important;
        height: 100% !important;
        position: relative !important;
        z-index: 3 !important;
    }

    .jcw-about-cta-img-col {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 500px !important; /* Fixed width prevents excessive zoom on wide displays */
        height: 100% !important;
        z-index: 1 !important;
        flex: none !important;
    }

    .jcw-about-cta-img-col::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 180px !important; /* Fade the left portion of the image */
        background: linear-gradient(to right, #FAF5F0 0%, rgba(250, 245, 240, 0.9) 30%, rgba(250, 245, 240, 0) 100%) !important;
        z-index: 2 !important;
    }
}

.jcw-about-cta-title {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: 2.1rem !important;
    /* Matches 32px font size of mockup */
    font-weight: 700 !important;
    color: var(--jcw-primary, #3A2418) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.jcw-about-cta-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: var(--jcw-muted, #8D7A6E) !important;
    margin-bottom: 24px !important;
}

.jcw-about-cta-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.jcw-btn-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Primary CTA Button (Gold background) */
.jcw-btn-cta--primary {
    background-color: #C68A4C !important;
    /* Warm gold/caramel from mockup */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(198, 138, 76, 0.15) !important;
}

.jcw-btn-cta--primary:hover {
    background-color: #2C1D15 !important;
    box-shadow: 0 6px 15px rgba(44, 29, 21, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

/* Secondary CTA Button (Dark brown/black background) */
.jcw-btn-cta--secondary {
    background-color: #2C1D15 !important;
    /* Dark brown from mockup */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(44, 29, 21, 0.08) !important;
}

.jcw-btn-cta--secondary:hover {
    background-color: #C68A4C !important;
    box-shadow: 0 6px 15px rgba(198, 138, 76, 0.15) !important;
    transform: translateY(-1.5px) !important;
}

/* Right column image cover */
@media (max-width: 991px) {
    .jcw-about-cta-img-col {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

.jcw-about-cta-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right 30% !important;
    display: block !important;
}

@media (max-width: 991px) {
    .jcw-about-cta-img {
        min-height: 280px !important;
        max-height: 320px !important;
    }
}

/* ── FULL WIDTH CONTAINER OVERRIDES ── */
.page-template-about-page .jcw-global-container,
.page-template-about-page .ast-container,
.page-template-about-page #primary,
.page-template-about-page #content,
.page-template-about-page .site-content,
.page-template-about-page #main,
.page-template-about-page .site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


@media (max-width: 768px) {
    .page-template-about-page .jcw-trustindex-wrap {
        padding: 0 20px !important;
    }

    .page-template-about-page .jcw-trustindex-wrap .ti-prev,
    .page-template-about-page .jcw-trustindex-wrap .ti-navigation.ti-prev {
        left: -5px !important;
    }

    .page-template-about-page .jcw-trustindex-wrap .ti-next,
    .page-template-about-page .jcw-trustindex-wrap .ti-navigation.ti-next {
        right: -5px !important;
    }
}