/* ============================================
   Technical Resources Page — Complete Redesign
   ANSI Pumps Pro — Industrial B2B
   ============================================ */

/* --- 1. HERO SECTION --- */
.tech-hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 35%, #4338ca 100%);
    color: #fff;
    padding: 80px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tech-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%23ffffff05"/><stop offset="100%25" stop-color="%23ffffff00"/></linearGradient></defs><circle cx="1000" cy="100" r="300" fill="url(%23g)"/><circle cx="200" cy="400" r="200" fill="url(%23g)"/><line x1="0" y1="300" x2="1200" y2="300" stroke="%23ffffff03" stroke-width="1"/><line x1="600" y1="0" x2="600" y2="600" stroke="%23ffffff03" stroke-width="1"/></svg>') center/cover;
    opacity: 0.6;
    pointer-events: none;
}
.tech-hero .container {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.tech-hero__badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.tech-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
    letter-spacing: -0.02em;
}
.tech-hero__subtitle {
    font-size: clamp(16px, 2.5vw, 19px);
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0 0 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.tech-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.tech-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.tech-hero__btn--primary {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}
.tech-hero__btn--primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.35);
    color: #fff;
}
.tech-hero__btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.tech-hero__btn--outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* Override WordPress block button defaults for hero CTA buttons */
.wp-block-button.tech-hero__btn--primary .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: #0066cc;
    color: #fff;
    border: 2px solid #0066cc;
    transition: all 0.25s;
}
.wp-block-button.tech-hero__btn--primary .wp-block-button__link:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.35);
    color: #fff;
}
.wp-block-button.tech-hero__btn--outline .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.25s;
}
.wp-block-button.tech-hero__btn--outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* --- 2. SECTION SPACING --- */
.tech-section {
    padding: 72px 0;
}
.tech-section--alt {
    background: #f7f9fc;
}
.tech-section__header {
    text-align: center;
    margin-bottom: 48px;
}
.tech-section__header h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.tech-section__header p {
    font-size: 17px;
    color: #5a6d80;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}
.tech-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 3. PERFORMANCE CURVE CARDS --- */
.curve-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .curve-cards {
        grid-template-columns: 1fr;
    }
}
.curve-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.curve-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: #c8d6e5;
}
.curve-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #e8f0fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.curve-card__icon svg {
    width: 32px;
    height: 32px;
    color: #0066cc;
}
.curve-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
}
.curve-card__subtitle {
    font-size: 14px;
    color: #7a8ea0;
    margin: 0 0 16px;
    font-weight: 500;
}
.curve-card p {
    font-size: 14px;
    color: #5a6d80;
    line-height: 1.5;
    margin: 0 0 24px;
    flex: 1;
}
.curve-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.2s;
}
.curve-card__link:hover {
    gap: 10px;
    color: #0052a3;
}

/* --- 4. CHEMICAL RESISTANCE TABLE --- */
.chem-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
}
.chem-table-search {
    padding: 20px 24px;
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chem-table-search svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    flex-shrink: 0;
}
.chem-table-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #0a1628;
    background: transparent;
}
.chem-table-search input::placeholder {
    color: #94a3b8;
}
.chem-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.chem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.chem-table thead th {
    background: #f1f5f9;
    color: #0a1628;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #dde4ed;
    white-space: nowrap;
}
.chem-table tbody tr {
    transition: background 0.15s;
}
.chem-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.chem-table tbody tr:hover {
    background: #e8f0fe;
}
.chem-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f5;
    color: #33475b;
    vertical-align: top;
}
.chem-table tbody td:first-child {
    font-weight: 600;
    color: #0a1628;
}
/* Alloy Tags */
.alloy-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.alloy-tag--alloy20 { background: #dbeafe; color: #1e40af; }
.alloy-tag--hastelloy { background: #ffe4cc; color: #9a3d00; }
.alloy-tag--titanium { background: #d1fae5; color: #065f46; }
.alloy-tag--duplex { background: #ede9fe; color: #5b21b6; }
.alloy-tag--nickel { background: #fce7f3; color: #9d174d; }
.alloy-tag--monel { background: #fef3c7; color: #92400e; }
.alloy-tag--zirconium { background: #e0e7ff; color: #3730a3; }
.alloy-tag--stainless { background: #e2e8f0; color: #334155; }
.alloy-tag--titanium-pd { background: #ccfbf1; color: #134e4a; }
.chem-table-note {
    padding: 14px 24px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.chem-table-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- 5. DOWNLOAD CARDS --- */
.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .download-cards {
        grid-template-columns: 1fr;
    }
}
.download-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    border-color: #0066cc;
}
.download-card__icon {
    width: 56px;
    height: 56px;
    background: #fee2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.download-card__icon svg {
    width: 28px;
    height: 28px;
    color: #dc2626;
}
.download-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 6px;
}
.download-card p {
    font-size: 13px;
    color: #7a8ea0;
    margin: 0 0 20px;
    line-height: 1.4;
    flex: 1;
}
.download-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #0066cc;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.download-card__btn:hover {
    background: #0052a3;
    color: #fff;
}
.download-card__size {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* --- 6. FINAL CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, #0f1f3d 0%, #162d50 50%, #1a3a6e 100%);
    color: #fff;
    text-align: center;
    padding: 72px 0;
}
.cta-section h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.cta-section p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.cta-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: #fff;
    color: #0066cc;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}
.cta-section__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    color: #004b99;
}

/* --- 7. TRUST BAR (hidden per user request) --- */
.trust-bar {
    display: none !important;
}
/* Override WordPress block layout so trust bar items flow horizontally */
.trust-bar .wp-block-group__inner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a6d80;
    font-size: 14px;
    font-weight: 600;
}
.trust-bar__item svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

/* --- 8. RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
    .curve-cards,
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .curve-cards,
    .download-cards {
        grid-template-columns: 1fr;
    }
    .tech-hero {
        padding: 56px 0 48px;
    }
    .tech-hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .tech-hero__btn {
        width: 100%;
        justify-content: center;
    }
    .tech-section {
        padding: 48px 0;
    }
    .trust-bar {
        gap: 20px;
    }
}

/* --- 9. FIX WHATSAPP + QUICK QUOTE STACKING --- */
@media (max-width: 640px) {
    body > a[href*="wa.me"] {
        bottom: 16px !important;
        right: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }
    body > a[href*="wa.me"] + div,
    body > div:has(+ a[href*="wa.me"]) {
        bottom: 76px !important;
        right: 16px !important;
        font-size: 11px !important;
        padding: 8px 12px !important;
    }
}

/* --- 10. EMPTY STATE / HIDDEN ROWS --- */
.chem-table tbody tr.hidden-by-filter {
    display: none;
}

/* --- 11. BREADCRUMB ENHANCEMENT --- */
.page-breadcrumb {
    font-size: 14px;
    color: #7a8ea0;
    padding: 16px 0;
}
.page-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}
.page-breadcrumb a:hover {
    text-decoration: underline;
}
.page-breadcrumb span {
    margin: 0 6px;
    color: #c0ccda;
}