/* =============================================================
   CP4U — Home Page (Custom Template)
   Brand: #00b843 (green)  |  #295230 (dark)  |  #e6f7ef (light)
   ============================================================= */

/* ── Full-width override (body class from page-home.php template)
─────────────────────────────────────────────────────────────── */
body.page-template-page-home-php #primary,
body.page-template-page-home     #primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
body.page-template-page-home-php .ast-row,
body.page-template-page-home     .ast-row {
    display: block !important;
    max-width: 100% !important;
}
body.page-template-page-home-php #secondary,
body.page-template-page-home     #secondary {
    display: none !important;
}
body.page-template-page-home-php .entry-header,
body.page-template-page-home     .entry-header,
body.page-template-page-home-php .post-navigation,
body.page-template-page-home     .post-navigation {
    display: none !important;
}
body.page-template-page-home-php .entry-content,
body.page-template-page-home     .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.page-template-page-home-php .ast-container,
body.page-template-page-home     .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}
body.page-template-page-home-php .site-content,
body.page-template-page-home     .site-content,
body.page-template-page-home-php #content,
body.page-template-page-home     #content {
    padding: 0 !important;
    margin: 0 !important;
}
body.page-template-page-home-php .ast-article-single,
body.page-template-page-home     .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}


/* ══════════════════════════════════════════
   GLOBAL WRAP
══════════════════════════════════════════ */
.cp4u-home-wrap {
    display: block;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}


/* ══════════════════════════════════════════
   1. HERO BANNER
══════════════════════════════════════════ */
.cp4u-hero {
    display: block;
    width: 100%;
    line-height: 0;
    background: #000;
}
.cp4u-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
}


/* ══════════════════════════════════════════
   2. MARQUEE — Scrolling patch gallery
══════════════════════════════════════════ */
.cp4u-marquee-wrap {
    overflow: hidden;
    background: #f7faf8;
    padding: 24px 0;
    border-top: 2px solid #e6f7ef;
    border-bottom: 2px solid #e6f7ef;
}

.cp4u-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: cp4u-marquee 40s linear infinite;
}
.cp4u-marquee-wrap:hover .cp4u-marquee-track {
    animation-play-state: paused;
}

.cp4u-marquee-track img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    transition: transform .25s;
}
.cp4u-marquee-track img:hover {
    transform: scale(1.06);
}

@keyframes cp4u-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ══════════════════════════════════════════
   2b. INSPIRATION GALLERY
══════════════════════════════════════════ */
.cp4u-gallery-wrap {
    background: #e6f7ef;
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}
.cp4u-gallery-title {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #295230;
    line-height: 1;
    margin: 0 0 8px;
    padding-top: 30px;
}
.cp4u-gallery-subtitle {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #295230;
    margin: 0 0 16px;
}
.cp4u-gallery-slider-wrap {
    position: relative;
    padding: 10px 56px;
}
.cp4u-gallery-viewport {
    overflow: hidden;
}
.cp4u-gallery-track {
    display: flex;
    gap: 10px;
    /* transition is controlled by JS — set per-move */
}
.cp4u-gallery-slide {
    flex-shrink: 0;
}
.cp4u-gallery-slide img {
    border-radius: 12px;
    width: 100%;
    height: 376px;
    object-fit: cover;
    display: block;
}
.cp4u-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #00b843;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,184,67,.18);
    transition: background .2s, border-color .2s;
}
.cp4u-gallery-arrow:hover {
    background: #00b843;
}
.cp4u-gallery-arrow svg {
    width: 18px;
    height: 18px;
    fill: #00b843;
    transition: fill .2s;
}
.cp4u-gallery-arrow:hover svg { fill: #fff; }
.cp4u-gallery-prev { left: 6px; }
.cp4u-gallery-next { right: 6px; }

@media (max-width: 900px) {
    .cp4u-gallery-slide img { height: 280px; }
    .cp4u-gallery-slider-wrap { padding: 10px 52px; }
}
@media (max-width: 600px) {
    .cp4u-gallery-title    { font-size: 28px; }
    .cp4u-gallery-subtitle { font-size: 14px; }
    .cp4u-gallery-slide img { height: 340px; }
    .cp4u-gallery-slider-wrap { padding: 10px 48px; }
}


/* ══════════════════════════════════════════
   3. SECTION HEADER
══════════════════════════════════════════ */
.cp4u-section-header {
    text-align: center;
    padding: 64px 20px 32px;
    background: #fff;
}

.cp4u-decorated-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1a2e1a;
    margin: 0 0 12px;
    letter-spacing: -.5px;
}

.cp4u-deco-line {
    flex: 1;
    max-width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00b843);
    border-radius: 2px;
}
.cp4u-deco-line:last-child {
    background: linear-gradient(90deg, #00b843, transparent);
}

.cp4u-section-subheading {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    color: #295230;
    margin: 0;
    letter-spacing: .4px;
}


/* ══════════════════════════════════════════
   4. PRODUCT GRID WRAP (shared w/ category)
══════════════════════════════════════════ */
.fp-products-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 20px 40px; box-sizing: border-box; }
.fp-section-title { font-size: 32px; font-weight: 500; color: #295230; margin: 24px 0 14px; text-align: left; text-transform: capitalize; line-height: 1.2; padding: 10px 0; }

/* Grid — always 4 columns */
.fp-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card */
.fp-prod-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    overflow: hidden; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.fp-prod-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.13); transform: translateY(-3px); }

/* Image */
.fp-prod-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f9f9f9; padding: 14px; box-sizing: border-box; border-radius: 14px 14px 0 0; }

/* Body */
.fp-prod-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; text-align: center; }

/* Title */
.fp-prod-title-wrap { display: table; width: 100%; font-size: 17px; font-weight: 600; color: #00b843; text-align: center; margin-bottom: 4px; }
.fp-prod-title-inner { display: flex; justify-content: center; }
.fp-prod-title-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; line-height: 1.3; max-height: 2.6em; }
.fp-prod-name { color: #00b843; text-decoration: none; font-weight: 600; font-size: 15px; }
.fp-prod-card:hover .fp-prod-name { text-decoration: underline; }

/* Stars */
.fp-stars-wrap { display: flex; align-items: center; justify-content: center; gap: 4px; }
.fp-stars { position: relative; display: inline-block; font-size: 15px; color: #ccc; white-space: nowrap; }
.fp-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.fp-review-count { font-size: 12px; color: #555; font-weight: 500; }

/* Price */
.fp-prod-price { color: #00b843; font-weight: 600; font-size: 18px; line-height: 1; text-align: center; margin: 4px 0; }

/* Button */
.fp-prod-btn {
    width: 100%; background: #00b843; border-radius: 50px; color: #fff;
    display: flex; justify-content: center; align-items: center;
    margin-top: auto; text-transform: uppercase; font-weight: 500;
    text-align: center; border: none; padding: 8px 12px; font-size: 15px;
    line-height: 24px; cursor: pointer; font-family: inherit;
    transition: background 0.2s ease; box-sizing: border-box;
}
.fp-prod-btn:hover,
.fp-prod-card:hover .fp-prod-btn {
    background: #295230;
    color: #fff !important;
}

/* Sizes */
.fp-prod-sizes { font-size: 12px; color: #999; margin: 0; text-align: center; }

/* Badge */
.fp-min-badge { position: absolute; top: 10px; right: 10px; background: #295230; color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; z-index: 2; }

@media (max-width: 1024px) { .fp-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .fp-prod-grid { grid-template-columns: repeat(2, 1fr); } .fp-prod-name { font-size: 13px; } .fp-prod-price { font-size: 15px; } .fp-prod-btn { font-size: 13px; } }


/* ══════════════════════════════════════════
   5. ORDER PROCESS
══════════════════════════════════════════ */
.cp4u-steps-wrap {
    width: 100%;
    background: #e6f7ef;
    padding: 40px 20px;
    box-sizing: border-box;
}
.cp4u-steps-heading {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0 28px;
}
.cp4u-steps-heading h1 {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #295230;
    line-height: 1;
    margin: 0 0 10px;
    padding: 0;
}
.cp4u-steps-heading p {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2e2e2e;
    margin: 0;
    text-align: center;
}
.cp4u-steps-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.cp4u-step {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 16px;
    gap: 12px;
    box-sizing: border-box;
}
.cp4u-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #00b843;
    border-radius: 50%;
    flex-shrink: 0;
}
.cp4u-step-icon svg {
    width: 38px;
    height: 38px;
    fill: #ffffff;
}
.cp4u-step h5 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}
.cp4u-step p {
    font-size: 14px;
    font-weight: 400;
    color: #444;
    margin: 0;
    line-height: 1.6;
}
.cp4u-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 4px;
}
.cp4u-step-arrow svg {
    width: 24px;
    height: 24px;
    fill: #00b843;
}
@media (max-width: 768px) {
    .cp4u-steps-inner { flex-direction: column; }
    .cp4u-step-arrow { transform: rotate(90deg); }
}


/* ══════════════════════════════════════════
   6. AUDIENCE / "TURN YOUR IDEAS" SECTION
══════════════════════════════════════════ */
@media (max-width: 991px) {
    .cp-section          { padding: 60px 0px 50px !important; }
    .cp-heading          { font-size: 28px !important; }
    .cp-intro-p          { font-size: 14px !important; }
    .cp-col              { width: 100% !important; }
    .cp-image-wrap       { min-height: 320px !important; }
    .cp-image            { height: auto !important; max-height: 400px !important; }
    .cp-badge-top        { top: 16px !important; left: 16px !important; padding: 10px 14px !important; }
    .cp-badge-bottom     { bottom: 16px !important; right: 16px !important; padding: 10px 14px !important; }
    .cp-badge-bottom-num { font-size: 20px !important; }
    .cp-quality-box      { padding: 22px 22px !important; margin-top: 8px !important; }
    .cp-quality-title    { font-size: 19px !important; }
    .cp-industry-title   { font-size: 19px !important; }
    .cp-industry-intro   { font-size: 13px !important; margin-bottom: 14px !important; }
    .cp-industry-card    { padding: 14px !important; }
    .cp-card-title       { font-size: 13px !important; }
    .cp-card-text        { font-size: 11px !important; }
    .cp-header-wrap      { margin-bottom: 30px !important; }
}
@media (max-width: 575px) {
    .cp-section       { padding: 50px 0px 40px !important; }
    .cp-heading       { font-size: 24px !important; }
    .cp-intro-p       { font-size: 13px !important; line-height: 1.6 !important; }
    .cp-image-wrap    { min-height: 260px !important; }
    .cp-image         { max-height: 320px !important; }
    .cp-industry-col  { width: 100% !important; }
    .cp-badge-label   { font-size: 10px !important; }
    .cp-badge-value   { font-size: 14px !important; }
    .cp-quality-box   { padding: 20px !important; }
    .cp-quality-title { font-size: 18px !important; }
    .cp-industry-title{ font-size: 18px !important; }
    .cp-tag           { font-size: 11px !important; padding: 6px 14px !important; }
}


/* ══════════════════════════════════════════
   7. REVIEWS
══════════════════════════════════════════ */
.cp4u-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

.cp4u-review {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    transition: background .25s, transform .25s;
}
.cp4u-review:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-4px);
}

.cp4u-review-quote {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    color: #00b843;
    opacity: .4;
    font-family: Georgia, serif;
    pointer-events: none;
}

.cp4u-review-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cp4u-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00b843;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.cp4u-review-name {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cp4u-review-stars {
    display: block;
    color: #ffc107;
    font-size: .85rem;
    letter-spacing: 1px;
}

.cp4u-review > p {
    font-size: .875rem;
    color: #c8e6d4;
    line-height: 1.7;
    margin: 0;
}

/* CTA box responsive */
@media (max-width: 991px) {
    .cp4u-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-cta-box   { padding: 32px 24px !important; margin-top: 40px !important; }
    .rv-cta-title { font-size: 22px !important; }
    .rv-cta-text  { font-size: 14px !important; }
    .rv-btn       { padding: 12px 28px !important; font-size: 14px !important; }
    .rv-section   { padding: 60px 0px !important; }
    .rv-heading   { font-size: 28px !important; }
    .rv-intro     { font-size: 15px !important; margin-bottom: 30px !important; }
    .rv-tag       { font-size: 11px !important; }
}
@media (max-width: 575px) {
    .cp4u-reviews-grid { grid-template-columns: 1fr; }
    .rv-cta-box   { padding: 28px 18px !important; }
    .rv-cta-title { font-size: 20px !important; }
    .rv-btn-group { gap: 12px !important; flex-direction: column !important; align-items: stretch !important; }
    .rv-btn       { padding: 12px 20px !important; width: 100% !important; box-sizing: border-box !important; }
    .rv-section   { padding: 50px 0px !important; }
    .rv-heading   { font-size: 24px !important; }
    .rv-intro     { font-size: 14px !important; }
}


/* ══════════════════════════════════════════
   9. CTA BANNER
══════════════════════════════════════════ */
.cp4u-cta-banner {
    background: linear-gradient(135deg, #1a3c2a 0%, #00b843 100%);
    padding: 0 24px;
    overflow: hidden;
}

.cp4u-cta-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 340px;
}

.cp4u-cta-banner-text {
    flex: 1;
    padding: 60px 0;
}

.cp4u-cta-banner-text h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.cp4u-cta-btn {
    display: inline-block;
    background: #fff;
    color: #00b843;
    font-size: .95rem;
    font-weight: 800;
    padding: 16px 34px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cp4u-cta-btn:hover {
    background: #e6f7ef;
    color: #1a3c2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.20);
}

.cp4u-cta-banner-img {
    flex-shrink: 0;
    align-self: flex-end;
}
.cp4u-cta-banner-img img {
    display: block;
    width: clamp(260px, 35vw, 480px);
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

@media (max-width: 768px) {
    .cp4u-cta-banner-inner {
        flex-direction: column;
        min-height: unset;
        text-align: center;
        gap: 24px;
        padding: 40px 0 0;
    }
    .cp4u-cta-banner-img {
        align-self: center;
    }
    .cp4u-cta-banner-img img {
        width: clamp(200px, 60vw, 340px);
    }
}


/* ══════════════════════════════════════════
   GLOBAL RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .cp4u-section-header { padding: 48px 20px 24px; }
    .fp-products-wrap    { padding: 32px 16px 48px; }
    .cp4u-process        { padding: 60px 16px; }
    .cp4u-audience       { padding: 60px 16px; }
    .cp4u-reviews        { padding: 60px 16px; }
    .cp4u-cta-banner     { padding: 0 16px; }
}
