/* =============================================================================
   sustainability-dpp.css — Digital Product Passport page styles
   Loaded conditionally for: /dpp
============================================================================= */

/* === HERO === */
.dpp-hero-section  { min-height: 340px; padding: 60px 0; }
.dpp-hero-shape    { transform: translateY(0); opacity: 0.7; }
.dpp-hero-title    { line-height: 1.1; color: var(--navbar-bg); }
.dpp-hero-title span { color: var(--primary-green); }
.dpp-hero-subtitle { font-size: 1.05rem; font-weight: 300; max-width: 560px; line-height: 1.8; color: var(--text-secondary); }
.dpp-hero-figure img { object-fit: cover; }
.dpp-hero-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.dpp-hero-tag {
    background: rgba(123,185,62,0.12);
    color: var(--primary-green);
    border: 1px solid rgba(123,185,62,0.28);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
}
.dpp-hero-figure {
    height: 400px;
    border-radius: var(--radius-small);
    overflow: hidden;
}

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

/* === TEXT HELPERS === */
.dpp-section-sub     { max-width: 1000px; margin: 0 auto; }
.dpp-section-sub-640 { max-width: 640px;  margin: 0 auto; }
.dpp-h2-lh    { line-height: 1.2; }
.dpp-lead-lh  { line-height: 1.7; }
.dpp-lead-lh-8 { line-height: 1.8; }
.dpp-check-text { font-size: 0.9rem; }
.dpp-cta-note   { font-size: 0.9rem; }
.dpp-cta-link   { font-weight: 500; text-decoration: none; }
.dpp-cta-icon   { font-size: 0.75em; }

/* === FIGURES === */
.dpp-figure-380      { height: 380px; }
.dpp-figure-customer { height: 420px; border-radius: var(--radius-small); overflow: hidden; }
.dpp-security-row { align-items: stretch; }
.dpp-security-img-col { display: flex; flex-direction: column; }
.dpp-figure-security {
    position: relative;
    border-radius: var(--radius-small);
    overflow: hidden;
    flex: 1;
    min-height: 360px;
}
.dpp-figure-security img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* === LAYOUT HELPERS === */
.dpp-security-col         { padding: 0.4rem !important; }
.dpp-check-icon           { width: 2rem; }
.dpp-feature-checks .media { align-items: flex-start; }

/* === CTA SECTION === */
.dpp-cta-section     { background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%); padding: 5rem 1.5rem; }
.dpp-cta-title       { font-size: clamp(1.5rem, 2.2vw, 2.2rem); font-weight: 300; color: #ffffff; line-height: 1.25; margin-bottom: 1rem; }
.dpp-cta-subtitle    { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; line-height: 1.8; margin: 0 auto 2.5rem; max-width: 880px; }
.dpp-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;
}
.dpp-cta-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.dpp-cta-outline-btn {
    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;
}
.dpp-cta-outline-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
.dpp-cta-divider { border-top: 1px solid rgba(255,255,255,0.1); }

/* === VALUE CARDS === */
.dpp-value-card {
    height: 100%;
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dpp-value-card .title { color: var(--text-primary) !important; }
.dpp-value-card p      { color: var(--text-secondary) !important; }
.dpp-value-card:hover  { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-green); }
.dpp-value-icon {
    width: 60px; height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: var(--primary-green);
    transition: background 0.25s, color 0.25s;
}
.dpp-value-card:hover .dpp-value-icon { background: var(--primary-green); color: #ffffff; }
.dpp-value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* === SUPPLY CHAIN === */
.dpp-supply-chain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--lighter-green);
    border-radius: var(--radius-small);
}
.dpp-chain-step  { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; min-width: 70px; }
.dpp-chain-icon  { width: 44px; height: 44px; background: var(--primary-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1rem; }
.dpp-chain-label { font-size: 0.7rem; text-align: center; color: var(--text-secondary); font-weight: 500; line-height: 1.3; }
.dpp-chain-label small { font-weight: 400; color: var(--text-tertiary); }
.dpp-chain-arrow { color: var(--primary-green); font-size: 0.8rem; flex-shrink: 0; }

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

/* === LEVEL STATS === */
.dpp-level { background: white; border-radius: var(--radius-small); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.dpp-level .level-item .heading { color: var(--text-primary); font-size: 1rem; margin-bottom: 0.3rem; }
.dpp-level .level-item .title   { font-size: 1.25rem; }

/* === FEATURE CAROUSEL === */
.dpp-feature-carousel { position: relative; }
.dpp-slides-wrapper   { display: grid; }
.dpp-slide .columns { align-items: stretch; }
.dpp-slide .column  { display: flex; flex-direction: column; }
.dpp-slide .column:last-child .custom-image {
    flex: 1;
    height: auto;
    min-height: 200px;
    max-height: 300px;
}
.dpp-slide .column:last-child .custom-image img { height: 100%; object-fit: cover; }
.dpp-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
}
.dpp-slide.is-active { opacity: 1; pointer-events: auto; }

.dpp-slide-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-green);
    background: var(--light-green);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-small);
    margin-bottom: 1.25rem;
}
.dpp-slide-box {
    background: var(--light-green);
    border-radius: var(--radius-small);
    padding: 2rem;
}

/* === CAROUSEL CONTROLS === */
.dpp-carousel-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.dpp-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.dpp-carousel-btn:hover { background: var(--primary-green); color: #ffffff; }
.dpp-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}
.dpp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.dpp-dot.is-active             { background: var(--primary-green); transform: scale(1.25); }
.dpp-dot:hover:not(.is-active) { background: var(--green-hover); }

/* === FEATURE GRID === */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--light-green);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    flex-shrink: 0;
    font-size: 0.9rem;
}
.feature-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}
.feature-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* === REGULATION LIST === */
.dpp-reg-list    { list-style: none; padding: 0; margin: 0; }
.dpp-reg-list li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.9rem; color: var(--text-secondary); }
.dpp-reg-list li:last-child { border-bottom: none; }
.dpp-reg-list li i { color: var(--primary-green); margin-top: 2px; flex-shrink: 0; }

/* === COMPACT FEATURE CHECKS === */
.dpp-feature-checks .column { padding-top: 0.3rem; padding-bottom: 0.3rem; }

/* === STORY OF PRODUCT CALLOUT === */
.dpp-sop-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    /*border-left: 4px solid var(--primary-green);*/
    border-radius: var(--radius-small);
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}
.dpp-sop-icon { font-size: 1.4rem; color: var(--primary-green); flex-shrink: 0; }
.dpp-sop-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 180px;
}
.dpp-sop-text strong { display: block; color: var(--text-primary); margin-bottom: 0.15rem; }

/* === SECURITY === */
.dpp-security-badges { display: flex; gap: 0.5rem; justify-content: center; }
.dpp-security-item   { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.dpp-security-icon {
    width: 36px;
    height: 36px;
    background: var(--light-green);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    flex-shrink: 0;
}
.dpp-security-item strong { display: block; color: var(--text-primary); font-size: 0.875rem; }
.dpp-security-item p      { color: var(--text-secondary); font-size: 0.8rem; margin: 0; line-height: 1.4; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dpp-supply-chain { flex-direction: column; gap: 0.75rem; }
    .dpp-chain-arrow  { transform: rotate(90deg); }
    .dpp-stat-row     { flex-direction: column; }
    .dpp-stat-divider { width: 100%; height: 1px; }
    .dpp-floating-badge { display: none; }
    .dpp-level { flex-direction: column; gap: 1rem; }
    .dpp-hero-tags { justify-content: center; }
    .dpp-stat-number { font-size: 1.5rem; }
}

/* ─── tag.is-light override ─── */
.dpp-value-tags .tag.is-light {
    background: rgba(123,185,62,0.1) !important;
    color: var(--primary-green) !important;
    border: 1px solid rgba(123,185,62,0.28) !important;
    border-radius: 100px !important;
}
