/* =============================================
   HOMEPAGE STYLES
   Engineering Plastics Information Portal
   ============================================= */

/* --- All Materials Grid Section --- */
.materials-section {
    padding: 80px 0 100px;
    background: var(--bg-page);
}

.materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 580px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
}

@media (min-width: 1025px) {
    .materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.material-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 24px 20px;
    position: relative;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    overflow: hidden;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--gold);
    transition: height 0.3s ease;
}

.material-card:hover {
    background-color: #FAFAF8;
}

.material-card:hover::before {
    height: 100%;
}

.material-card-cat {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.material-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0;
    margin-bottom: 8px;
}

.material-card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.material-card-arrow {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-muted);
    align-self: flex-end;
    margin-top: 12px;
    transition: color 0.2s ease;
}

.material-card:hover .material-card-arrow {
    color: var(--gold);
}

/* --- Tagline Band --- */
.tagline-band {
    background: #fbfbfb;
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.tagline-band .tagline-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .tagline-band .tagline-text {
        font-size: 28px;
        line-height: 1.6;
        padding: 0;
    }
}

.tagline-band .tagline-text strong {
    color: var(--gold);
    font-weight: 700;
}

.tagline-band .tagline-sub {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: rgb(0 0 0);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 24px;
}

/* --- Comparison Table Section --- */
.comparison-section {
    padding: 80px 0 100px;
    background: var(--bg-surface);
}

.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 40px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 13px;
    min-width: 700px;
}

.comparison-table thead th {
    background: var(--bg-footer);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 11px;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.03);
}

.comparison-table .material-name-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.comparison-table .val-cell {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
}

.comparison-table .highlight-row td {
    background: rgba(0, 123, 255, 0.06);
}

/* --- Polymer Families Deep Dive --- */
.families-section {
    padding: 80px 0 100px;
    background: var(--bg-page);
}

.families-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 769px) {
    .families-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        margin-top: 40px;
    }
}

@media (min-width: 1200px) {
    .families-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.family-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 32px 28px;
    position: relative;
}

.family-card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gold-dim);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.family-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.family-card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.family-card-members {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.family-card-members span {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.family-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.family-card:hover::after {
    width: 100%;
}

/* --- Capability Stats Band --- */
.capability-band {
    background: var(--bg-footer);
    padding: 80px 0;
    color: #FFFFFF;
}

.stats-grid-band {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px;
}

@media (min-width: 992px) {
    .stats-grid-band {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.capability-item {
    text-align: center;
    padding: 32px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.capability-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 8px;
}

.capability-label {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Industry Applications Section --- */
.industry-section {
    padding: 80px 0 100px;
    background: var(--bg-surface);
}

.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 580px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.industry-card {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    padding: 28px 24px;
    border-left: 3px solid transparent;
    transition: border-left-color 0.2s ease;
}

.industry-card:hover {
    border-left-color: var(--gold);
}

.industry-card-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.industry-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.industry-card-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.industry-card-materials {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* --- Manufacturing Process Section --- */
.process-section {
    padding: 80px 0 100px;
    background: var(--bg-page);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
    position: relative;
}

@media (min-width: 769px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-grid::before {
        content: '';
        position: absolute;
        top: 8px;
        /* Through middle of 16px dots */
        left: 0;
        right: 0;
        height: 2px;
        background: var(--border-default);
        z-index: 0;
    }
}

/* Removed root-level vertical line that doesn't fit mobile stack */

.process-step {
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.process-step-dot {
    width: 16px;
    height: 16px;
    background: var(--gold);
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.process-step-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gold-dim);
    margin-bottom: 8px;
}

.process-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-step-desc {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Quality & Certifications --- */
.quality-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 600px) {
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .quality-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quality-card {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    padding: 32px 28px;
    text-align: center;
}

.quality-card-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--gold);
    border: 2px solid var(--gold);
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 16px;
}

.quality-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.quality-card-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Material Selection Guide --- */
.selection-section {
    padding: 80px 0 100px;
    background: var(--bg-page);
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

@media (min-width: 992px) {
    .selection-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 40px;
    }
}

.selection-criteria {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    padding: 32px;
}

.selection-criteria-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-default);
}

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

.criteria-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.criteria-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0 100px;
    background: var(--bg-surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        margin-top: 40px;
    }
}

.faq-item {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    padding: 28px;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- CTA Band --- */
.cta-band {
    background: var(--bg-footer);
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

@media (min-width: 769px) {
    .cta-title {
        font-size: 32px;
    }
}

.cta-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 769px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* --- Temperature Chart Visual --- */
.temp-chart {
    margin-top: 40px;
}

.temp-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.temp-bar-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    width: 100px;
    flex-shrink: 0;
}

.temp-bar-track {
    flex: 1;
    height: 20px;
    background: var(--border-default);
    position: relative;
    overflow: hidden;
}

.temp-bar-fill {
    height: 100%;
    background: var(--gold);
    position: relative;
    transition: width 0.8s ease;
}

.temp-bar-fill.tier-2 {
    background: var(--gold-light);
}

.temp-bar-fill.tier-3 {
    background: var(--gold-dim);
}

.temp-bar-value {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 10px;
    width: 60px;
    flex-shrink: 0;
}

/* --- Responsive --- */
/* Removed Legacy Desktop-First Responsive Blocks */