/* EthicalScanner Detail Page - Clean Grey & Coffee Theme */

.es-detail {
    --es-bg: #ffffff;
    --es-bg-alt: #f5f3f0;
    --es-accent: #5d7a5d;
    --es-accent-dark: #4a614a;
    --es-accent-light: #f3f6f3;
    --es-text: #2d2926;
    --es-text-muted: #5c554d;
    --es-border: #d6d0c8;
    --es-shadow: 0 4px 6px -1px rgba(45, 41, 38, 0.08), 0 2px 4px -1px rgba(45, 41, 38, 0.04);
}

.es-detail {
    background: var(--es-bg);
    color: var(--es-text);
    font-family: var(--font-sans);
}

/* Hero */
.es-hero {
    background: linear-gradient(135deg, #f3f6f3 0%, #f5f3f0 50%, #faf6f1 100%);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.es-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(93, 122, 93, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.es-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.es-hero-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    text-align: left;
}

.es-hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 420px;
    max-height: 550px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.12),
        0 10px 30px rgba(93, 122, 93, 0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

.es-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 900px) {
    .es-hero {
        flex-direction: column;
        padding: 2rem;
    }
    .es-hero-content {
        text-align: center;
        max-width: 100%;
    }
    .es-hero-image {
        width: 100%;
        max-width: 350px;
        max-height: 450px;
    }
}

.es-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--es-accent);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.es-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--es-text);
}

.es-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--es-accent-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.es-subtitle {
    font-size: 1.05rem;
    color: var(--es-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.es-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.es-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.es-btn--primary {
    background: var(--es-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.es-btn--primary:hover {
    background: var(--es-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.es-btn--ghost {
    background: white;
    color: var(--es-text);
    border: 2px solid var(--es-border);
}

.es-btn--ghost:hover {
    border-color: var(--es-accent);
    color: var(--es-accent);
}

.es-btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

/* Sections */
.es-section {
    padding: 5rem 2rem;
}

.es-section--alt {
    background: var(--es-bg-alt);
}

.es-section--cta {
    background: linear-gradient(135deg, #ecfdf5 0%, #fefce8 100%);
}

.es-container {
    max-width: 1100px;
    margin: 0 auto;
}

.es-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.es-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--es-accent);
    margin-bottom: 0.5rem;
}

.es-section-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--es-text);
}

/* Problem Grid */
.es-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.es-problem-card {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.es-problem-card:hover {
    box-shadow: var(--es-shadow);
    transform: translateY(-2px);
}

.es-problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.es-problem-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--es-text);
}

.es-problem-card p {
    color: var(--es-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Dimensions Grid */
.es-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.es-dimension {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.es-dimension:hover {
    border-color: var(--es-accent);
    box-shadow: 0 0 0 1px var(--es-accent);
}

.es-dimension-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.es-dimension h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--es-text);
}

.es-dimension-weight {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--es-accent-light);
    color: var(--es-accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.es-dimension p {
    font-size: 0.85rem;
    color: var(--es-text-muted);
    line-height: 1.5;
}

/* Flow Steps */
.es-flow {
    max-width: 650px;
    margin: 0 auto;
}

.es-flow-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.es-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--es-accent) 0%, var(--es-border) 100%);
}

.es-flow-number {
    width: 42px;
    height: 42px;
    background: var(--es-accent);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.es-flow-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--es-text);
}

.es-flow-content p {
    color: var(--es-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Grid */
.es-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.es-service {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.es-service:hover {
    box-shadow: var(--es-shadow);
}

.es-service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.es-service h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--es-text);
}

.es-service > p {
    font-size: 0.9rem;
    color: var(--es-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.es-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-service-list li {
    font-size: 0.85rem;
    color: var(--es-text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.es-service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--es-accent);
    font-weight: bold;
    font-size: 0.75rem;
}

/* Sources Grid */
.es-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.es-source {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.es-source h4 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--es-text);
}

.es-source p {
    font-size: 0.8rem;
    color: var(--es-text-muted);
    line-height: 1.5;
}

.es-boycott-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.es-boycott-note h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.es-boycott-note p {
    color: #a16207;
    font-size: 0.9rem;
}

/* Center Text */
.es-center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.25rem;
    color: var(--es-text-muted);
    line-height: 1.7;
}

/* Future Grid */
.es-future {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.es-future-item {
    background: var(--es-accent-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
}

.es-future-item h4 {
    color: var(--es-accent-dark);
    margin-bottom: 0.5rem;
}

.es-future-item p {
    color: var(--es-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tech Grid */
.es-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.es-tech-card {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.es-tech-card h4 {
    color: var(--es-accent-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.es-tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-tech-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--es-border);
    font-size: 0.875rem;
    color: var(--es-text-muted);
}

.es-tech-card li:last-child {
    border-bottom: none;
}

/* Package Grid */
.es-package {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.es-package-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--es-bg-alt);
    border: 1px solid var(--es-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.es-package-item:hover {
    border-color: var(--es-accent);
}

.es-package-item span {
    font-size: 1.5rem;
}

.es-package-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--es-text);
}

.es-package-item p {
    font-size: 0.85rem;
    color: var(--es-text-muted);
}

/* CTA Box */
.es-cta-box {
    text-align: center;
    padding: 3.5rem 2rem;
    background: white;
    border: 2px solid var(--es-accent);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.es-cta-box h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--es-accent);
    margin-bottom: 0.5rem;
}

.es-cta-box p {
    color: var(--es-text-muted);
    margin-bottom: 1.5rem;
}

/* Back */
.es-back {
    padding: 2rem;
    text-align: center;
    background: var(--es-bg);
}

.es-back a {
    color: var(--es-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.es-back a:hover {
    color: var(--es-accent);
}

/* Data Asset Section */
.es-data-asset {
    max-width: 900px;
    margin: 0 auto;
}

.es-data-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.es-data-intro p {
    color: var(--es-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.es-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.es-data-card {
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.es-data-card:hover {
    border-color: var(--es-accent);
    box-shadow: var(--es-shadow);
}

.es-data-card h4 {
    color: var(--es-accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.es-data-card p {
    color: var(--es-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Price Justification */
.es-price-justification {
    max-width: 800px;
    margin: 0 auto;
}

.es-price-point {
    background: white;
    border: 1px solid var(--es-border);
    border-left: 4px solid var(--es-accent);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.es-price-point:last-child {
    margin-bottom: 0;
}

.es-price-point h4 {
    color: var(--es-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.es-price-point p {
    color: var(--es-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Included Grid */
.es-included-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.es-included-intro p {
    color: var(--es-text-muted);
    font-size: 1.05rem;
}

.es-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.es-included-item {
    background: var(--es-bg-alt);
    border: 1px solid var(--es-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.es-included-item:hover {
    border-color: var(--es-accent);
}

.es-included-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--es-text);
}

.es-included-item p {
    font-size: 0.9rem;
    color: var(--es-text-muted);
    line-height: 1.5;
}

/* Transfer Summary */
.es-transfer-summary {
    max-width: 700px;
    margin: 0 auto;
}

.es-transfer-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.es-transfer-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.es-transfer-item:hover {
    border-color: var(--es-accent);
    box-shadow: var(--es-shadow);
}

.es-transfer-item > span {
    font-size: 2rem;
}

.es-transfer-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--es-text);
}

.es-transfer-item p {
    font-size: 0.9rem;
    color: var(--es-text-muted);
}

/* CTA Price */
.es-cta-price {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--es-accent);
    margin-bottom: 0.5rem;
}

.es-cta-box h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--es-text);
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .es-section {
        padding: 3.5rem 1.5rem;
    }
    
    .es-hero {
        padding: 4rem 1.5rem;
    }
    
    .es-flow-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .es-flow-step::after {
        display: none;
    }
}
