/* =========================================================
   MASTER NICKEL / ALLOY CSS
   Combined and deduplicated from uploaded category, product,
   and alloy overview styles, plus the added forms card styles.
   ========================================================= */

/* ---------- 1) THEME TOKENS ---------- */
:root {
    --primary-color: #0b2c4d;
    --secondary-color: #1a4a7a;
    --accent-color: #d35400;
    --bg-light: #f4f7f6;
    --border-color: #e1e1e1;
    --text-main: #333;
    --text-muted: #555;
    --text-light: var(--text-muted);

    /* Product aliases (kept for compatibility with existing HTML) */
    --prod-primary: var(--primary-color);
    --prod-secondary: var(--secondary-color);
    --prod-accent: var(--accent-color);
    --prod-bg: #f8f9fa;
    --prod-border: #e9ecef;
    --text-dark: #212529;
    --text-grey: #6c757d;
}

/* ---------- 2) GLOBAL BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin-top: 30px;
}

.category-page-wrapper,
.product-detail-wrapper,
.alloy-page-wrapper {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-page-wrapper {
    color: var(--text-main);
    padding: 20px 0;
}

.product-detail-wrapper {
    color: var(--text-dark);
    padding-bottom: 50px;
}

.alloy-page-wrapper {
    color: var(--text-main);
    padding-bottom: 60px;
}

/* =========================================================
   3) CATEGORY PAGES
   ========================================================= */
.cat-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cat-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cat-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.sub-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grade-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.grade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.grade-img {
    height: 250px;
    background-color: #ddd;
    overflow: hidden;
}

.grade-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.grade-card:hover .grade-img img {
    transform: scale(1.05);
}

.grade-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grade-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.grade-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-tags {
    margin-bottom: 20px;
}

.feature-tags span {
    display: inline-block;
    background: #eef2f5;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.view-grade-btn {
    margin-top: auto;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 3px;
    text-align: center;
    transition: background 0.3s ease;
    font-weight: 600;
}

.view-grade-btn:hover {
    background: var(--accent-color);
}

.info-block {
    background: #fff;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.two-col-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.compare-table th {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px;
    text-align: left;
}

.compare-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.compare-table tr:hover td {
    background-color: #f9f9f9;
}

.app-icons-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.app-icon-box {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
}

.app-icon-symbol {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.app-icon-box h4 {
    margin: 0;
    color: var(--primary-color);
}

/* =========================================================
   4) PRODUCT DETAIL PAGES
   ========================================================= */
.prod-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 0 0 30px 0;
}

.prod-image-box {
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--prod-border);
    height: 400px;
    position: relative;
}

.prod-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-info-box h1 {
    font-size: 2.4rem;
    color: var(--prod-primary);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.prod-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 20px;
    font-weight: 500;
    border-bottom: 1px solid var(--prod-border);
    padding-bottom: 15px;
}

.key-specs-list {
    list-style: none;
    padding: 20px;
    margin-bottom: 30px;
    background: var(--prod-bg);
    border-radius: 4px;
    border-left: 4px solid var(--prod-secondary);
}

.key-specs-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.key-specs-list strong {
    color: var(--prod-primary);
}

.action-area {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quote-btn {
    background: var(--prod-accent);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-btn:hover {
    background: #b04600;
}

.download-btn {
    background: #fff;
    color: var(--prod-primary);
    border: 2px solid var(--prod-primary);
    padding: 13px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--prod-primary);
    color: #fff;
}

.section-head {
    font-size: 1.8rem;
    color: var(--prod-primary);
    margin-bottom: 20px;
    margin-top: 50px;
    border-bottom: 2px solid var(--prod-border);
    padding-bottom: 10px;
    position: relative;
}

.section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--prod-accent);
}

.data-table-wrap {
    overflow-x: auto;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-detail-wrapper .tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: #fff;
    font-size: 0.95rem;
}

.product-detail-wrapper .tech-table th {
    background: var(--prod-secondary);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--prod-primary);
}

.product-detail-wrapper .tech-table td {
    padding: 10px 15px;
    border: 1px solid var(--prod-border);
    color: #444;
}

.product-detail-wrapper .tech-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Product variants / feature modules */
.variant-compare-box {
    background: linear-gradient(to right, #fff, #f4f7f9);
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 25px;
    margin-top: 30px;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.variant-col {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.variant-col h4 {
    color: var(--prod-accent);
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-col {
    background: #fff;
    padding: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    border-top: 3px solid var(--prod-accent);
}

.feature-col h4 {
    color: var(--prod-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-col p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background: #fff;
    padding: 20px;
    border-left: 4px solid var(--prod-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.app-card h4 {
    margin: 0 0 10px 0;
    color: var(--prod-primary);
}

.app-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.cat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cat-card {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cat-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.cat-card h4 {
    margin: 0 0 10px 0;
    color: var(--prod-primary);
    font-size: 1.2rem;
}

.cat-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.process-row {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    min-width: 200px;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--prod-secondary);
    color: #fff;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Added forms card module */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.form-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: #0056b3;
}

.form-card-icon {
    font-size: 2.2rem;
    margin-right: 18px;
    line-height: 1;
}

.form-card-content h4 {
    margin: 0 0 8px 0;
    color: #222;
    font-size: 1.15rem;
}

.form-card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* =========================================================
   5) ALLOY OVERVIEW / DIRECTORY PAGE
   ========================================================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    text-align: center;
    font-size: 1.1rem;
}

.intro-box {
    background: #fff;
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.intro-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.major-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.alloy-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.alloy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.card-img {
    height: 200px;
    background-color: #eee;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px;
}

.grade-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.grade-link {
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: #f0f4f8;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dae1e7;
    font-weight: 600;
}

.grade-link:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.cta-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent-color);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.specialty-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.specialty-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.specialty-card h4 {
    margin: 10px 0 0 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.specialty-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.specialty-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.alloy-page-wrapper .tech-table-wrapper {
    overflow-x: auto;
    margin-bottom: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.alloy-page-wrapper .tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: #fff;
}

.alloy-page-wrapper .tech-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    text-align: left;
    border: none;
}

.alloy-page-wrapper .tech-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.alloy-page-wrapper .tech-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #fff;
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

/* =========================================================
   6) RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .two-col-text {
        grid-template-columns: 1fr;
    }

    .grade-card {
        flex-direction: column;
    }

    .prod-hero {
        grid-template-columns: 1fr;
    }

    .prod-image-box {
        height: 300px;
    }

    .variant-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .action-area {
        flex-direction: column;
    }

    .quote-btn,
    .download-btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

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

/* =========================================================
   7) FORM PAGES & BREADCRUMBS
   ========================================================= */
.form-page-wrapper {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light, var(--text-muted));
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumbs span.separator,
.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.form-hero {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.form-hero h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.form-hero p {
    font-size: 1.1rem;
    color: var(--text-light, var(--text-muted));
    max-width: 900px;
    margin-bottom: 0;
}

.form-page-wrapper .section-title {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-color);
    border-left: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-left: 0;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

