/* Steel Grade Page Styles - Refined for Readability */

.steel-grade-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 24px;
}

.hero {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 36px;
    border: 1px solid var(--input-border);
}

/* Hero CTA extends .request-order-cta (components/request_order_cta.css) */
/* Only override: full-width button for hero section */
.hero-cta .btn {
    width: 100%;
    align-self: stretch;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.25;
}

.hero-intro {
    font-size: 16px;
    color: #c9d1d9;
    margin-bottom: 28px;
    max-width: 700px;
    line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-metric-card {
    background: var(--input-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--input-border);
    transition: border-color 0.2s, transform 0.2s;
}

.stats-metric-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-value.accent {
    color: var(--accent-orange);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.hero-cta .btn {
    width: 100%;
}

/* Offers Section */
.offers-section {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--input-border);
    overflow: hidden;
    margin-bottom: 24px;
}

.section-header {
    padding: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.offers-summary {
    font-size: 14px;
    color: #c9d1d9;
}

/* Content Sections */
.content-section {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 36px;
    margin-bottom: 24px;
    border: 1px solid var(--input-border);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--input-border);
}

.content-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.content-section h3:first-of-type {
    margin-top: 0;
}

.content-section p,
.description p {
    margin-bottom: 16px;
    color: #c9d1d9;
    line-height: 1.75;
    font-size: 15px;
}

.properties-description p {
    color: #c9d1d9;
    line-height: 1.75;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.composition-table,
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.composition-table th,
.composition-table td,
.specs-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--input-border);
}

.composition-table th {
    background: var(--input-bg);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.composition-table td {
    font-size: 14px;
    color: #c9d1d9;
    background: var(--secondary-bg);
}

.composition-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
    width: 35%;
    background: var(--input-bg);
}

.specs-table td:last-child {
    text-align: left;
    color: #c9d1d9;
    background: var(--secondary-bg);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Sizes Info */
.sizes-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.sizes-info strong {
    color: var(--text-primary);
}

.sizes-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.product-tag {
    background: var(--input-bg);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #c9d1d9;
    border: 1px solid var(--input-border);
    transition: border-color 0.2s;
}

.product-tag:hover {
    border-color: rgba(255, 107, 53, 0.4);
}

/* Grade Encoding */
.grade-encoding {
    background: var(--input-bg);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid var(--input-border);
    line-height: 1.7;
}

.grade-encoding strong {
    color: var(--text-primary);
}

/* Specs Table with Header */
.specs-table th {
    background: var(--input-bg);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--input-border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.application-use-case {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--input-bg);
    border-radius: 10px;
    font-size: 14px;
    color: #c9d1d9;
    border: 1px solid var(--input-border);
    transition: border-color 0.2s;
}

.application-use-case:hover {
    border-color: rgba(255, 107, 53, 0.4);
}

.application-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.application-icon i {
    font-size: 16px;
}

/* Related Grades */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.related-grade-card {
    background: var(--input-bg);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid var(--input-border);
}

.related-grade-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.related-grade-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.related-grade-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-accordion-item {
    border: 1px solid var(--input-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-accordion-item:hover {
    border-color: rgba(255, 107, 53, 0.4);
}

.faq-accordion-trigger {
    padding: 18px 20px;
    font-weight: 500;
    font-size: 15px;
    background: var(--input-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    transition: background 0.2s;
    gap: 16px;
}

.faq-accordion-trigger:hover {
    background: var(--secondary-bg);
}

.faq-accordion-icon {
    font-size: 22px;
    color: var(--accent-orange);
    transition: transform 0.25s ease;
    font-weight: 300;
}

.faq-accordion-item.open .faq-accordion-icon {
    transform: rotate(45deg);
}

.faq-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #c9d1d9;
    line-height: 1.75;
    font-size: 15px;
}

.faq-accordion-item.open .faq-accordion-content {
    padding: 18px 20px;
    max-height: 500px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        padding: 24px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 24px;
    }

    .content-section h2 {
        font-size: 20px;
    }
}
