/* -----------------------------------------------------------------------------
   Story of Product — page-specific styles (/story-of-product)
----------------------------------------------------------------------------- */

/* --- Section label --- */
.sop-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-green);
}

/* --- MARQUEE --- */
.sop-marquee-wrapper {
    overflow: hidden;
    width: 100%;
}
.sop-marquee-track {
    display: flex;
    width: max-content;
    animation: sop-marquee 32s linear infinite;
}
.sop-marquee-track:hover { animation-play-state: paused; }
@keyframes sop-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.sop-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}
.sop-marquee-item i { color: var(--primary-green); }

/* --- CHALLENGE CARDS --- */
.sop-challenge-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
}
.sop-challenge-columns > .column {
    display: contents !important;
    padding: 0 !important;
}
.sop-challenge-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small-card);
    overflow: hidden;
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sop-challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}
.sop-challenge-card-top {
    background: var(--navbar-bg);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}
.sop-challenge-card-bottom {
    background: #ffffff;
    padding: 1.75rem 2rem 2rem;
}
@media screen and (max-width: 768px) {
    .sop-challenge-columns {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    .sop-challenge-columns > .column {
        display: block !important;
        padding: 0.75rem 0 !important;
    }
    .sop-challenge-card {
        display: flex !important;
        flex-direction: column;
        grid-row: unset;
        grid-template-rows: unset;
    }
}
.sop-challenge-icon {
    width: 56px;
    height: 56px;
    background: rgba(123, 185, 62, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary-green);
    margin: 0 auto 1.25rem;
    transition: background 0.25s ease, color 0.25s ease;
}
.sop-challenge-card:hover .sop-challenge-icon {
    background: var(--primary-green);
    color: #ffffff;
}
.sop-challenge-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}
.sop-challenge-badge--problem { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.sop-challenge-badge--solution { background: var(--light-green); color: var(--primary-green-darker); }
.sop-challenge-card-top .title { color: #ffffff !important; }
.sop-challenge-card-top p { color: rgba(255,255,255,0.6); line-height: 1.65; font-size: 0.95rem; }

/* --- FEATURE GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--navbar-bg);
    border-radius: var(--radius-small-card);
    padding: 0.9rem 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-item:hover {
    transform: translateX(3px);
}
.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(123, 185, 62, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--primary-green);
}
.feature-content h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.feature-content p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    margin: 0;
}
@media screen and (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* --- BENEFIT LIST --- */
.sop-benefit-list { display: flex; flex-direction: column; gap: 0.85rem; }
.sop-benefit-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-small);
    border: 1px solid var(--border-color);
}
.sop-benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--light-green);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- STATS ROW --- */
.sop-stat-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--neutral-100);
    border-radius: var(--radius-small);
    padding: 1.25rem 1.5rem;
}
.sop-stat-item { flex: 1; }
.sop-stat-number { display: block; font-size: 2rem; font-weight: 500; color: var(--primary-green); line-height: 1.1; }
.sop-stat-desc { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.35rem; line-height: 1.45; }
.sop-stat-divider { width: 1px; height: 50px; background: var(--border-color); flex-shrink: 0; }

/* --- PROCESS STEPS --- */
.sop-steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}
.sop-step {
    flex: 1;
    max-width: 230px;
    text-align: center;
    padding: 1.5rem 0.85rem;
}
.sop-step-number {
    font-size: 2.75rem;
    font-weight: 500;
    color: var(--neutral-200);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.sop-step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(123, 185, 62, 0.3);
}
.sop-step-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}
.sop-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.sop-step-connector {
    flex-shrink: 0;
    color: var(--primary-green);
    font-size: 1.2rem;
    padding-top: 5rem;
    opacity: 0.45;
}

/* --- FEATURE CARDS --- */
.sop-feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small-card);
    padding: 2rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sop-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}
.sop-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.sop-feature-header > div {
    min-width: 0;
}
.sop-feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--light-green);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-green);
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}
.sop-feature-card:hover .sop-feature-icon-wrap {
    background: var(--primary-green);
    color: #ffffff;
}
.sop-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.sop-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.sop-feature-list li i {
    color: var(--primary-green);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* --- TESTIMONIAL --- */
.sop-testimonial-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1020px;
    margin: 0 auto;
}
.sop-testimonial-card {
    flex: 2;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small-card);
    padding: 2.5rem;
    border-left: 4px solid var(--primary-green);
    box-shadow: var(--shadow-md);
}
.sop-quote-mark {
    font-size: 2rem;
    color: var(--primary-green);
    opacity: 0.3;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.sop-quote-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
    background: none;
}
.sop-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sop-author-avatar {
    width: 44px;
    height: 44px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sop-author-name { display: block; font-weight: 500; color: var(--text-primary); font-size: 0.9rem; }
.sop-author-company { display: block; color: var(--text-secondary); font-size: 0.85rem; }
.sop-testimonial-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
}
.sop-tstat {
    background: var(--light-green);
    border-radius: var(--radius-small);
    padding: 1.25rem 1.5rem;
}
.sop-tstat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-green);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.sop-tstat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- CTA BUTTONS --- */
.sop-cta-btn-primary {
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    height: auto;
    transition: background 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.sop-cta-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.sop-cta-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    height: auto;
    transition: border-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.sop-cta-btn-outline:hover { border-color: var(--primary-green); color: var(--primary-green); }

/* --- RESPONSIVE --- */
@media screen and (max-width: 1024px) {
    .sop-steps-grid { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .sop-step-connector { display: none; }
    .sop-step { max-width: 46%; }
    .sop-testimonial-wrapper { flex-direction: column; }
}
@media screen and (max-width: 768px) {
    .sop-steps-grid { flex-direction: column; align-items: center; }
    .sop-step { max-width: 100%; width: 100%; }
    .sop-stat-row { flex-direction: column; gap: 1rem; text-align: center; }
    .sop-stat-divider { width: 40px; height: 1px; }
    .sop-step-number { font-size: 1.8rem; }
    .sop-tstat-number { font-size: 1.4rem; }
    .sop-quote-mark { font-size: 1.5rem; }
}

/* Override hero.css rule that hides .column.is-5 on mobile —
   this column contains a product image, not a decorative icon */
@media screen and (max-width: 768px) {
    .hero-custom .sop-hero-img-col {
        display: block !important;
        margin-top: 2rem;
    }
    .hero-custom .sop-hero-img-col figure {
        height: 260px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }
}
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .hero-custom .sop-hero-img-col figure {
        height: 340px !important;
    }
}
@media screen and (max-width: 360px) {
    .sop-feature-card { padding: 1.25rem; }
    .sop-feature-header .title { font-size: 1.1rem !important; }
    .sop-feature-header .tag { white-space: normal; height: auto; line-height: 1.4; }
}
