/* ========================================
   Durco Mark III Category Template Styles
   ======================================== */

/* -- Hero Section -- */
.category-hero {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0f2b4a 100%);
    padding: 80px 0 60px;
    overflow: hidden;
    color: #ffffff;
}

.category-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,86,179,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.category-hero__content {
    position: relative;
    z-index: 1;
}

.category-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.category-hero__badge {
    display: inline-block;
    background: rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-hero__headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.category-hero__subheadline {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px 0;
    max-width: 560px;
}

.category-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.category-hero__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.category-hero__features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ff8c00;
}

.category-hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-hero__actions .btn--primary {
    background: #ff8c00;
    color: #fff;
    border: 2px solid #ff8c00;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.category-hero__actions .btn--primary:hover {
    background: #e67e00;
    border-color: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.3);
}

.category-hero__actions .btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.category-hero__actions .btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.category-hero__actions .btn--lg svg {
    width: 20px;
    height: 20px;
}

.category-hero__guarantee {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin: 0;
}

.category-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-hero__img-placeholder {
    width: 400px;
    max-width: 100%;
    color: rgba(255,255,255,0.4);
}

/* -- Trust Bar -- */
.trust-bar {
    background: #0d2137;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}

.trust-bar__grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-bar__item svg {
    width: 20px;
    height: 20px;
    color: #ff8c00;
}

/* -- Section Headers -- */
.section {
    padding: 70px 0;
}

.section--article-cards,
.section--pos-table,
.section--frame-groups,
.section--qa {
    background: #ffffff;
}

.section--interchange,
.section--rfq {
    background: #f6f8fa;
}

.section--materials {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
}

.section--faq {
    background: #ffffff;
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0056B3;
    margin-bottom: 12px;
}

.section__title {
    font-size: 32px;
    font-weight: 800;
    color: #0d2137;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.section__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section__divider span {
    display: block;
    width: 40px;
    height: 2px;
    background: #e0e5ea;
}

.section__divider svg {
    width: 24px;
    height: 24px;
    color: #0056B3;
}

.section__desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: #5a6678;
}

/* -- Article Cards -- */
.article-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #0056B3;
    box-shadow: 0 8px 30px rgba(0,86,179,0.1);
    transform: translateY(-3px);
}

.article-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(0,86,179,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0056B3;
}

.article-card__icon svg {
    width: 24px;
    height: 24px;
}

.article-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.article-card__title a {
    color: #0d2137;
    text-decoration: none;
}

.article-card__title a:hover {
    color: #0056B3;
}

.article-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #5a6678;
    margin: 0 0 20px 0;
    flex: 1;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0056B3;
    text-decoration: none;
}

.article-card__link:hover {
    color: #ff8c00;
}

.article-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.article-card__link:hover svg {
    transform: translateX(3px);
}

/* -- POS Table -- */
.pos-table__wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    background: #ffffff;
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pos-table thead {
    background: #0d2137;
    color: #ffffff;
}

.pos-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pos-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f3f6;
    color: #333;
    vertical-align: middle;
}

.pos-table tbody tr:hover {
    background: #f6f9fc;
}

.pos-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.pos-table tbody tr:nth-child(even):hover {
    background: #f0f5f9;
}

.pos-table .btn--sm {
    display: inline-block;
    background: #0056B3;
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.pos-table .btn--sm:hover {
    background: #ff8c00;
}

/* -- Interchange Table -- */
.interchange__layout {
    max-width: 900px;
    margin: 0 auto;
}

.interchange__table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.interchange-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.interchange-table thead {
    background: #0d2137;
    color: #ffffff;
}

.interchange-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interchange-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f3f6;
    color: #333;
}

.interchange-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge--yes {
    background: #e6f7ee;
    color: #0d7d44;
}

.badge--warn {
    background: #fff8e6;
    color: #b87a14;
}

.badge--no {
    background: #fde8e8;
    color: #c53030;
}

.interchange__cta {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8edf2;
}

.interchange__cta p {
    margin-bottom: 16px;
    color: #5a6678;
}

.interchange__cta .btn--primary {
    display: inline-block;
    background: #0056B3;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.interchange__cta .btn--primary:hover {
    background: #ff8c00;
}

/* -- Frame Group Cards -- */
.frame-groups__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.frame-group-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.frame-group-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.frame-group-card--featured {
    border-color: #0056B3;
    box-shadow: 0 4px 20px rgba(0,86,179,0.1);
}

.frame-group-card__header {
    background: #0d2137;
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frame-group-card--featured .frame-group-card__header {
    background: #0056B3;
}

.frame-group-card__label {
    font-size: 18px;
    font-weight: 800;
}

.frame-group-card__frame {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.frame-group-card__body {
    padding: 20px;
}

.frame-group-card__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.frame-group-card__body ul li {
    padding: 5px 0;
    font-size: 13px;
    color: #5a6678;
    border-bottom: 1px solid #f0f3f6;
    font-family: 'Roboto Mono', monospace;
}

.frame-group-card__specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f6f8fa;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #0056B3;
    font-weight: 600;
}

/* -- Material Grid -- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 24px 20px;
    transition: all 0.3s;
}

.material-card:hover {
    border-color: #0056B3;
    box-shadow: 0 4px 16px rgba(0,86,179,0.08);
}

.material-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0d2137;
    margin: 0 0 8px 0;
}

.material-card__spec {
    font-size: 11px;
    font-weight: 600;
    color: #0056B3;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.material-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #5a6678;
    margin: 0;
}

/* -- QA Grid -- */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qa-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.qa-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border-color: #0056B3;
}

.qa-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(0,86,179,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056B3;
}

.qa-card__icon svg {
    width: 28px;
    height: 28px;
}

.qa-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0d2137;
    margin: 0 0 10px 0;
}

.qa-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #5a6678;
    margin: 0;
}

/* -- RFQ Section -- */
.rfq-layout {
    display: grid;
    grid-template-columns: 1fr 0.45fr;
    gap: 40px;
    align-items: start;
}

.rfq-form-wrapper {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.rfq-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rfq-info__card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 24px;
}

.rfq-info__card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0d2137;
    margin: 0 0 12px 0;
}

.rfq-info__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfq-info__card ul li {
    padding: 6px 0;
    font-size: 13px;
    color: #5a6678;
    border-bottom: 1px solid #f0f3f6;
    padding-left: 18px;
    position: relative;
}

.rfq-info__card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0056B3;
    font-weight: 700;
    font-size: 12px;
}

.rfq-info__card--contact {
    background: linear-gradient(135deg, #0d2137 0%, #143658 100%);
    color: #ffffff;
    border: none;
}

.rfq-info__card--contact h4 {
    color: #ffffff;
}

.rfq-info__card--contact p {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: rgba(255,255,255,0.7);
}

.rfq-info__email {
    font-size: 18px;
    font-weight: 700;
    color: #ff8c00 !important;
    text-decoration: none;
}

.rfq-info__email:hover {
    color: #ffa333;
}

.rfq-info__phone a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.rfq-info__subject {
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    font-style: italic;
}

/* -- FAQ Accordion -- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e8edf2;
}

.faq-item:first-child {
    border-top: 1px solid #e8edf2;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #0d2137;
    text-align: left;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #0056B3;
}

.faq-question:focus-visible {
    outline: 2px solid #0056B3;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Plus/minus icon */
.faq-question__icon {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c0c8d2;
    transition: all 0.25s ease;
}

.faq-question__icon::before,
.faq-question__icon::after {
    content: '';
    position: absolute;
    background: #c0c8d2;
    transition: all 0.25s ease;
}

.faq-question__icon::before {
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    transform: translateY(-1px);
}

.faq-question__icon::after {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    transform: translateX(-1px);
}

/* Open state */
.faq-question[aria-expanded="true"] {
    color: #0056B3;
}

.faq-question[aria-expanded="true"] .faq-question__icon {
    border-color: #0056B3;
    background: #0056B3;
}

.faq-question[aria-expanded="true"] .faq-question__icon::before {
    background: #ffffff;
}

.faq-question[aria-expanded="true"] .faq-question__icon::after {
    transform: translateX(-1px) rotate(90deg);
    opacity: 0;
}

.faq-question:hover .faq-question__icon {
    border-color: #0056B3;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer__inner {
    padding: 0 0 20px 0;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: #5a6678;
    margin: 0;
}

.faq-answer a {
    color: #0056B3;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #ff8c00;
}

.section__note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #5a6678;
}

.section__note a {
    color: #0056B3;
    font-weight: 600;
}


/* -- Custom File Upload -- */
.rfq-form input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.rfq-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rfq-file-upload__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f4f8;
    border: 1.5px dashed #c0c8d2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0056B3;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.rfq-file-upload__label:hover {
    border-color: #0056B3;
    background: #e8f0fa;
}

.rfq-file-upload__label svg {
    flex-shrink: 0;
}

.rfq-file-upload__name {
    font-size: 13px;
    color: #8899aa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .category-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .category-hero__headline {
        font-size: 32px;
    }
    
    .category-hero__features {
        grid-template-columns: 1fr;
    }
    
    .article-cards__grid {
        grid-template-columns: 1fr;
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .frame-groups__grid {
        grid-template-columns: 1fr;
    }
    
    .rfq-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .category-hero {
        padding: 50px 0 40px;
    }
    
    .category-hero__headline {
        font-size: 26px;
    }
    
    .section__title {
        font-size: 24px;
    }
    
    .trust-bar__grid {
        gap: 16px;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .qa-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }
}
/* -- RFQ Form Styles -- */
.rfq-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rfq-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rfq-form__row--3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.rfq-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rfq-form__field--full {
    grid-column: 1 / -1;
}

.rfq-form label {
    font-size: 13px;
    font-weight: 600;
    color: #0d2137;
}

.rfq-form label .required {
    color: #c53030;
}

.rfq-form input[type="text"],
.rfq-form input[type="email"],
.rfq-form input[type="tel"],
.rfq-form input[type="number"],
.rfq-form select,
.rfq-form textarea {
    padding: 12px 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #0d2137;
    background: #fafbfc;
    transition: all 0.2s;
    width: 100%;
}

.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
    outline: none;
    border-color: #0056B3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.08);
}

.rfq-form input[type="file"] {
    padding: 10px;
    border: 1.5px dashed #dde3ea;
    border-radius: 8px;
    font-size: 13px;
    background: #fafbfc;
    cursor: pointer;
}

.rfq-form input[type="file"]:hover {
    border-color: #0056B3;
    background: rgba(0,86,179,0.02);
}

.rfq-form__hint {
    font-size: 12px;
    color: #8899aa;
    margin: 4px 0 0 0;
}

.rfq-form__submit {
    margin-top: 8px;
}

.btn--submit-rfq {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff8c00;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn--submit-rfq:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.3);
}

.rfq-form__privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8899aa;
    text-align: center;
    margin: 0;
}

.rfq-form__privacy svg {
    flex-shrink: 0;
    color: #8899aa;
}

/* Success message */
.rfq-success-message {
    text-align: center;
    padding: 48px 24px;
}

.rfq-success-message svg {
    color: #0d7d44;
    margin-bottom: 16px;
}

.rfq-success-message h3 {
    font-size: 22px;
    color: #0d7d44;
    margin: 0 0 8px 0;
}

.rfq-success-message p {
    font-size: 15px;
    color: #5a6678;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .rfq-form__row,
    .rfq-form__row--3col {
        grid-template-columns: 1fr;
    }
}