/* =============================================
   BRAND PALETTE & TOKENS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-flame:      #E84A1A;   /* primary accent */
    --color-berry:      #C4336E;   /* secondary accent */
    --color-cream:      #FAF0EB;   /* warm background */
    --color-espresso:   #2B1F1A;   /* dark text / surfaces */

    /* Derived tones */
    --color-flame-light:    #FDEEE8;
    --color-flame-mid:      #F37040;
    --color-berry-light:    #FAE6EF;
    --color-espresso-soft:  #4A3830;
    --color-espresso-muted: #7A6560;
    --color-border:         #E8D8D0;
    --color-white:          #FFFFFF;

    /* Gradients */
    --grad-brand:   linear-gradient(135deg, var(--color-flame) 0%, var(--color-berry) 100%);
    --grad-warm:    linear-gradient(135deg, var(--color-flame-light) 0%, var(--color-berry-light) 100%);
    --grad-dark:    linear-gradient(135deg, var(--color-espresso) 0%, #1a1210 100%);

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing & Shape */
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --radius-xl:    28px;
    --radius-pill:  999px;

    /* Shadows */
    --shadow-sm:    0 2px 8px rgba(43,31,26,0.06);
    --shadow-md:    0 6px 24px rgba(43,31,26,0.10);
    --shadow-lg:    0 12px 40px rgba(43,31,26,0.14);
    --shadow-brand: 0 8px 24px rgba(232,74,26,0.25);
    --shadow-berry: 0 8px 24px rgba(196,51,110,0.25);

    /* Transitions */
    --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);

    /* Legacy aliases (keeps old class references working) */
    --primary-color:      var(--color-flame);
    --secondary-color:    var(--color-espresso);
    --text-color:         var(--color-espresso-muted);
    --text-dark:          var(--color-espresso);
    --background-color:   var(--color-cream);
    --light-gray:         #F5ECE8;
    --medium-gray:        var(--color-border);
    --dark-gray:          var(--color-espresso-muted);
    --border-radius:      var(--radius-md);
    --box-shadow:         var(--shadow-md);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-espresso-muted);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-espresso);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

p { font-family: var(--font-main); font-weight: 400; }

a {
    color: var(--color-flame);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-berry); }

img { max-width: 100%; height: auto; }
ul  { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: var(--grad-dark);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(43,31,26,0.35);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .powered-by {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

@media (max-width: 600px) {
    .navbar { flex-direction: column; text-align: center; gap: 6px; padding: 1rem; }
    .navbar .powered-by { margin-top: 0; }
}

/* =============================================
   MAIN HEADER (legacy .main-header)
   ============================================= */
.main-header {
    background: var(--grad-dark);
    box-shadow: 0 2px 16px rgba(43,31,26,0.30);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container { padding: 0 20px; }
.logo { height: 40px; }

.header-right { display: flex; align-items: center; padding: 0 20px; }

.language-selector { display: flex; align-items: center; gap: 8px; color: #fff; }
.language-selector select {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}
.language-selector select:hover { background: rgba(255,255,255,0.14); }
.language-selector select option { background: var(--color-espresso); color: #fff; }

/* =============================================
   APP WRAPPER & MAIN CONTENT
   ============================================= */
.app-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; padding-bottom: 60px; }

/* =============================================
   SECTION DEFAULTS
   ============================================= */
section {
    padding: 56px 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 36px;
    position: relative;
    padding-bottom: 16px;
    text-align: center;
    color: var(--color-espresso);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 4px;
    background: var(--grad-brand);
    border-radius: var(--radius-pill);
}

.subsection-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 36px 0 18px;
    color: var(--color-espresso);
}

/* =============================================
   EIM SECTION
   ============================================= */
.eim-section { padding: 64px 0; }

.eim-section .section-header {
    text-align: center;
    margin-bottom: 44px;
}

.eim-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin: 0 0 10px;
    letter-spacing: -0.025em;
}

.eim-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--color-espresso-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Metrics Grid */
.eim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.eim-metrics-grid .metric-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}
.eim-metrics-grid .metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(232,74,26,0.2);
}

.eim-metrics-grid .metric-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.eim-metrics-grid .metric-icon.water     { background: #E8F4FF; color: #1A78C2; }
.eim-metrics-grid .metric-icon.chemicals { background: var(--color-flame-light); color: var(--color-flame); }
.eim-metrics-grid .metric-icon.energy    { background: var(--color-berry-light); color: var(--color-berry); }
.eim-metrics-grid .metric-icon.score     { background: #E8F8F0; color: #1A9E5C; }

.eim-metrics-grid .metric-content { display: flex; flex-direction: column; gap: 3px; }

.eim-metrics-grid .metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-espresso-muted);
}
.eim-metrics-grid .metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-espresso);
    line-height: 1.15;
}
.eim-metrics-grid .metric-unit {
    font-size: 0.76rem;
    color: var(--color-espresso-muted);
    margin-top: 1px;
}

.eim-metrics-grid .metric-card.featured {
    border-color: rgba(232,74,26,0.3);
    background: var(--grad-warm);
}
.eim-metrics-grid .metric-card.featured .metric-value { color: var(--color-flame); }

/* =============================================
   CHAINIQ SECTION
   ============================================= */
.chainiq-section { padding: 64px 0; background: var(--color-cream); }
.chainiq-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.chainiq-header { text-align: center; margin-bottom: 52px; }
.chainiq-header-content {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-bottom: 14px;
}

.chainiq-icon {
    width: 68px; height: 68px;
    border-radius: var(--radius-md);
    background: var(--grad-dark);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-brand);
}

.chainiq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin: 0;
    letter-spacing: -0.03em;
}

.chainiq-subtitle {
    font-size: 1.05rem;
    color: var(--color-espresso-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

.chainiq-overview {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.chainiq-overview:hover { box-shadow: var(--shadow-lg); }

.chainiq-section-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 28px;
    text-align: center;
}

/* Risk Table */
.risk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.risk-table th,
.risk-table td {
    padding: 1.125rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.risk-table th {
    background: var(--grad-dark);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}
.risk-table th:first-child { border-top-left-radius: var(--radius-lg); }
.risk-table th:last-child  { border-top-right-radius: var(--radius-lg); }

.risk-table tbody tr { transition: var(--transition); }
.risk-table tbody tr:hover { background: var(--color-flame-light); transform: translateX(4px); }
.risk-table tbody tr:last-child td { border-bottom: none; }
.risk-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.risk-table tbody tr:last-child td:last-child  { border-bottom-right-radius: var(--radius-lg); }

.risk-table td { color: var(--color-espresso); font-size: 0.95rem; }
.risk-table td:nth-child(2) { color: var(--color-espresso-muted); font-weight: 500; }

.risk-badge {
    display: inline-flex; align-items: center;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: var(--transition);
}
.risk-badge.high {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.risk-badge.medium {
    background: linear-gradient(135deg, #FDDBC7 0%, #F5B08A 100%);
    color: var(--color-espresso);
}
.risk-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (max-width: 768px) {
    .chainiq-section { padding: 44px 0; }
    .chainiq-title { font-size: 1.75rem; }
    .chainiq-subtitle { font-size: 0.95rem; }
    .chainiq-header-content { flex-direction: column; gap: 1rem; }
    .chainiq-overview { padding: 24px; }
    .risk-table { font-size: 0.875rem; }
    .risk-table th, .risk-table td { padding: 0.875rem 1rem; }
    .chainiq-section-title { font-size: 1.375rem; }
}

/* =============================================
   PRODUCT HEADER (MODERN)
   ============================================= */
.product-header-modern {
    background: var(--grad-dark);
    color: #fff;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}
.product-header-modern::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(232,74,26,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 20% 80%, rgba(196,51,110,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.product-header-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* Image Slider */
.product-image-slider {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 3rem;
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

.slider-wrapper { position: relative; width: 100%; height: 100%; }
.slide-container { display: none; width: 100%; height: 100%; position: relative; }
.slide-container.active { display: flex; align-items: center; justify-content: center; }
.slide-container img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

.slider-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10; font-size: 18px;
}
.slider-nav:hover { background: var(--color-flame); border-color: var(--color-flame); transform: translateY(-50%) scale(1.08); }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--color-flame); border-color: var(--color-flame); transform: scale(1.3); }
.dot:hover  { background: rgba(255,255,255,0.55); }

/* Product Info */
.product-info-modern { text-align: center; }
.product-title-modern {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.product-description-modern {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 780px;
    margin-left: auto; margin-right: auto;
}

/* Tags */
.product-tags-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 2rem;
}
.product-tag {
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-pill);
    font-size: 0.875rem; font-weight: 500; color: #fff;
    transition: var(--transition);
}
.product-tag:hover {
    background: rgba(232,74,26,0.25);
    border-color: var(--color-flame);
    transform: translateY(-2px);
}
.product-tag .tag-label { color: rgba(255,255,255,0.55); margin-right: 8px; font-size: 0.78rem; }
.product-tag .tag-value { color: #fff; font-weight: 600; }

.date-tags-container {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 12px; margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.date-tag {
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.date-tag i { margin-right: 6px; font-size: 0.72rem; }

@media (max-width: 768px) {
    .product-header-modern { padding: 2.5rem 1rem; }
    .product-title-modern { font-size: 1.875rem; }
    .product-description-modern { font-size: 0.975rem; }
    .product-image-slider { max-width: 100%; margin-bottom: 2rem; }
    .slider-nav { width: 40px; height: 40px; font-size: 15px; }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    .product-tags-container, .date-tags-container { gap: 8px; }
    .product-tag { padding: 8px 14px; font-size: 0.78rem; }
}

/* =============================================
   PRODUCT INFO SECTION (legacy)
   ============================================= */
.product-info-section {
    background: var(--grad-dark);
    color: #fff;
    padding: 72px 0; margin-top: 0; border-radius: 0;
    position: relative; overflow: hidden;
}
.product-info-section::after {
    content: '';
    position: absolute; bottom: -10px; left: 0;
    width: 100%; height: 20px;
    background: var(--color-flame);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: scale(3,1); opacity: 0.15;
}

.product-header { text-align: center; margin-bottom: 40px; }
.product-title  { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.product-subtitle { font-size: 1.125rem; margin-bottom: 15px; opacity: 0.85; color: #fff; }
.product-description { max-width: 800px; margin: 0 auto; line-height: 1.75; opacity: 0.8; font-size: 1.0625rem; }

.product-specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 48px; }

.spec-item {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    min-width: 240px;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.spec-item:hover {
    background: rgba(232,74,26,0.2);
    border-color: rgba(232,74,26,0.4);
    transform: translateY(-3px);
}
.spec-icon  { font-size: 22px; color: var(--color-flame); }
.spec-label { font-size: 13px; opacity: 0.75; color: #fff; }
.spec-value { font-size: 1.0625rem; font-weight: 600; color: #fff; }

/* =============================================
   MATERIALS SECTION
   ============================================= */
.materials-section { padding: 64px 0; }

.materials-chart {
    margin-top: 28px;
    max-width: 860px;
    margin-left: auto; margin-right: auto;
}

.materials-list { display: flex; flex-direction: column; gap: 18px; }

.material-item {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; padding: 6px 0;
    margin-bottom: 0;
}

.material-percentage {
    width: 58px; text-align: right;
    font-weight: 700; font-size: 1.1rem;
    color: var(--color-flame);
}

.material-name { width: 175px; font-weight: 500; color: var(--color-espresso); }

.material-bar {
    flex: 1;
    height: 10px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.material-bar-fill {
    height: 10px;
    background: var(--grad-brand);
    border-radius: var(--radius-pill);
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.read-more-btn {
    background: none; border: none;
    color: var(--color-flame); cursor: pointer;
    padding: 0; margin-top: 5px;
    font-family: var(--font-main); font-weight: 600; font-size: 0.875rem;
    transition: var(--transition);
}
.read-more-btn:hover { color: var(--color-berry); text-decoration: underline; }

.material-description {
    background: var(--color-flame-light);
    border-left: 3px solid var(--color-flame);
    padding: 12px 16px;
    margin-top: 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-espresso-muted);
    line-height: 1.6;
}

/* =============================================
   ENERGY / PROCESS SECTION
   ============================================= */
.energy-section { background: var(--color-cream); padding: 64px 0; }

.process-list {
    display: flex; flex-direction: column; gap: 18px;
    margin-top: 28px; max-width: 900px;
    margin-left: auto; margin-right: auto;
}

.process-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-flame);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.process-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-berry);
}

.process-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 50%; font-size: 20px;
    box-shadow: var(--shadow-brand);
}

.process-name { font-weight: 700; font-size: 1.0625rem; color: var(--color-espresso); margin-bottom: 4px; }
.process-location { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--color-espresso-muted); }

/* =============================================
   JOURNEY SECTION
   ============================================= */
.journey-section { padding: 64px 0; }

.journey-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.journey-tab {
    padding: 10px 24px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-main); font-weight: 500; font-size: 0.9375rem;
    color: var(--color-espresso-muted);
    transition: var(--transition);
}
.journey-tab:hover {
    background: var(--color-flame-light);
    border-color: var(--color-flame);
    color: var(--color-flame);
}
.journey-tab.active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-brand);
    font-weight: 600;
}

.journey-tab-content { display: none; }
.journey-tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.supplier-entry {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-flame);
    transition: var(--transition);
    margin-bottom: 0;
}
.supplier-entry:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-left-color: var(--color-berry); }
.supplier-entry p { margin-bottom: 9px; line-height: 1.55; color: var(--color-espresso-muted); }
.supplier-entry p:first-child { font-weight: 700; color: var(--color-espresso); font-size: 1rem; }

/* Journey Accordion */
.journey-accordion .journey-header {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--color-espresso);
    margin-top: 10px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}
.journey-accordion .journey-header:hover { background: var(--color-flame-light); border-color: var(--color-flame); }
.journey-accordion .journey-header::after {
    content: '+'; position: absolute; right: 20px;
    font-size: 20px; color: var(--color-flame);
    transition: transform 0.3s ease;
}
.journey-accordion .journey-header.active { background: var(--color-flame-light); border-color: var(--color-flame); }
.journey-accordion .journey-header.active::after { content: '−'; }

.journey-accordion .journey-body {
    display: none;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--color-white);
    font-size: 0.9375rem;
    color: var(--color-espresso-muted);
    line-height: 1.65;
}

/* =============================================
   SUPPLY CHAIN GRAPH
   ============================================= */
.supply-chain-graph {
    display: flex; flex-direction: row; gap: 20px;
    align-items: flex-start; overflow-x: auto; padding: 10px;
}

.tier-vertical { display: flex; flex-direction: column; align-items: center; }
.branch-row    { display: flex; flex-direction: row; gap: 40px; }

.tier-box {
    border: 2px solid var(--color-flame);
    border-radius: var(--radius-sm);
    padding: 15px; min-width: 220px;
    background: var(--color-white);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.tier-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tier-connection {
    width: 4px; height: 20px;
    background: var(--grad-brand);
    border-radius: var(--radius-pill);
    margin: 0 auto 20px;
}

/* Supply tabs */
.supply-tabs { margin-top: 20px; }

.tab-menu {
    list-style: none; display: flex;
    border-bottom: 2px solid var(--color-border);
    padding: 0; margin: 0;
}
.tab-menu li {
    padding: 10px 18px; cursor: pointer;
    border: 1.5px solid var(--color-border);
    border-bottom: none;
    background: var(--color-cream);
    margin-right: 5px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: var(--font-main); font-size: 0.9rem;
    color: var(--color-espresso-muted);
    transition: var(--transition);
}
.tab-menu li:hover { background: var(--color-flame-light); color: var(--color-flame); }
.tab-menu li.active {
    background: var(--color-white); font-weight: 700;
    color: var(--color-flame); border-bottom-color: var(--color-white);
}

@media (max-width: 600px) { .tab-menu li { padding: 12px 6px; font-size: 0.8rem; } }

.tab-content .tab-pane { display: none; padding: 12px; border: 1px solid var(--color-border); border-top: none; }
.tab-content .tab-pane.active { display: block; }

/* Supply node tree */
.supply-node {
    position: relative; padding-left: 20px; margin: 10px 0;
}
.supply-node:before {
    content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
    width: 2px; background: var(--color-flame);
}
.supply-node:last-child:before { bottom: 50%; }
.supply-node > .supply-node:before { top: -10px; height: calc(100% + 10px); }
.supply-node > .supply-node:after {
    content: ''; position: absolute; top: 10px; left: 7px;
    width: 13px; height: 2px; background: var(--color-flame);
}
.tier2 { margin-left: 0; }
.tier3 { margin-left: 20px; }
.tier4 { margin-left: 40px; }

/* Audit & Certificate info */
#audit-info, #certificate-info {
    display: none;
    margin-top: 12px;
    background: var(--color-flame-light);
    padding: 16px; border-radius: var(--radius-md);
    border-left: 3px solid var(--color-flame);
    transition: var(--transition);
    font-size: 0.9375rem;
    color: var(--color-espresso-muted);
}

.learn-more {
    color: var(--color-flame); cursor: pointer;
    text-decoration: underline; font-weight: 500;
    transition: var(--transition);
}
.learn-more:hover { color: var(--color-berry); }

/* =============================================
   CARBON SECTION
   ============================================= */
.carbon-section { padding: 64px 0; background: var(--color-cream); }

.carbon-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px; margin-bottom: 50px;
}

.carbon-metric {
    display: flex; align-items: center; gap: 18px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.carbon-metric:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.carbon-metric.total {
    grid-column: 1 / -1;
    background: var(--grad-brand);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-brand);
}

.carbon-icon {
    width: 58px; height: 58px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-flame-light);
    color: var(--color-flame);
    border-radius: 50%; font-size: 22px;
    box-shadow: var(--shadow-sm);
}
.carbon-metric.total .carbon-icon {
    background: rgba(255,255,255,0.2);
    color: #fff; box-shadow: none;
}

.carbon-label {
    font-size: 0.8125rem; margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-espresso-muted);
}
.carbon-metric.total .carbon-label { color: rgba(255,255,255,0.75); }
.carbon-value { font-size: 1.625rem; font-weight: 700; color: var(--color-espresso); }
.carbon-metric.total .carbon-value { color: #fff; }

.carbon-visualization { display: flex; justify-content: center; margin-top: 40px; }
.carbon-chart { max-width: 700px; width: 100%; }

.chart-legend {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 18px; font-size: 0.9rem; margin-top: 28px; padding: 16px;
    background: var(--color-flame-light);
    border-radius: var(--radius-md);
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-color { width: 16px; height: 16px; border-radius: 4px; }
.legend-color.material  { background: var(--color-espresso); }
.legend-color.energy    { background: var(--color-flame); }
.legend-color.transport { background: var(--color-berry); }
.legend-color.usage     { background: #66BB6A; }
.legend-color.end-of-life { background: var(--color-espresso-soft); }

/* =============================================
   CARE SECTION
   ============================================= */
.care-section { padding: 64px 0; }

.care-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px; max-width: 950px; margin: 0 auto;
}

.care-item {
    display: flex; align-items: center; gap: 18px;
    padding: 24px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.care-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    background: var(--color-white);
    border-color: rgba(232,74,26,0.25);
}

.care-icon {
    width: 54px; height: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-brand);
    color: #fff; border-radius: 50%; font-size: 20px;
    box-shadow: var(--shadow-brand);
}

.care-label {
    font-size: 0.76rem; color: var(--color-espresso-muted);
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.care-value { font-weight: 700; font-size: 1rem; color: var(--color-espresso); }

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certifications-section { padding: 64px 0; background: var(--color-cream); }
.certifications-container { max-width: 1000px; margin: 0 auto; }

.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px; margin-bottom: 40px;
}

.certification-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.certification-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-left: 3px solid var(--color-flame);
}

.certification-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-brand);
    color: #fff; border-radius: 50%; font-size: 17px;
    box-shadow: var(--shadow-brand);
}

.certification-name  { font-weight: 700; font-size: 0.975rem; color: var(--color-espresso); margin-bottom: 4px; }
.certification-validity,
.certification-status { font-size: 0.8375rem; color: var(--color-espresso-muted); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: 64px 0; background: var(--color-white);
    border-radius: 0; box-shadow: var(--shadow-sm);
}
.about-section .auto-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.about-section .sec-title {
    font-size: 1.625rem; font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 22px; position: relative; padding-bottom: 14px;
}
.about-section .sec-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--grad-brand); border-radius: var(--radius-pill);
}
.about-section .inner {
    background: var(--color-cream); padding: 30px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.about-section .text-column { animation: fadeInUp 0.6s ease; }
.about-section p, .about-section .sec-title * {
    color: var(--color-espresso-muted); line-height: 1.7; font-size: 16px;
}

@media (max-width: 768px) {
    .about-section { padding: 40px 0; }
    .about-section .inner { padding: 20px; }
    .about-section .sec-title { font-size: 1.375rem; }
    .about-section p { font-size: 0.9375rem; }
}

/* =============================================
   CONTAINER PRODUCT
   ============================================= */
.container-product {
    width: 50%;
    background: var(--grad-dark);
    padding: 50px;
    border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
    .container-product { width: 90%; padding: 32px; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer-content-section {
    padding: 40px 0;
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
}
.footer-content { max-width: 800px; margin: 0 auto; text-align: center; }

.main-footer {
    background: var(--grad-dark);
    padding: 32px 0; color: #fff;
    position: relative; width: 100%;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo img { height: 40px; }
.copyright { font-size: 13px; opacity: 0.6; }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 50px; height: 50px;
    background: var(--grad-brand);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-brand);
    opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 1000;
}
.scroll-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-berry); }
.scroll-to-top.visible { opacity: 1; visibility: visible; }

/* =============================================
   MOBILE — LEGACY OVERRIDES
   ============================================= */
@media (max-width: 768px) {
    .product-title    { font-size: 1.75rem; }
    .product-subtitle { font-size: 1rem; }
    .section-title    { font-size: 1.5rem; }

    .spec-item, .carbon-metric, .care-item, .certification-item {
        flex-direction: column; text-align: center;
    }
    .carbon-icon, .care-icon, .certification-icon { margin-bottom: 8px; }

    .journey-tab { padding: 8px 16px; font-size: 0.875rem; }
    .material-percentage { width: 42px; font-size: 1rem; }
    .material-name { width: 120px; font-size: 0.875rem; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animated { animation: fadeInUp 0.55s ease-out; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}