/* ═══════════════════════════════════════════════
   PILLAR PAGE — Shared base styles for all
   Pillar layout pages (TOC + article)
   ═══════════════════════════════════════════════ */

/* ═══ PILLAR CONTENT LAYOUT ═══ */
.pillar-page .pillar-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
}

/* ─── TABLE OF CONTENTS (sticky sidebar) ─── */
.pillar-page .toc {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
}

.pillar-page .toc-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--steel-blue);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ice-blue);
}

.pillar-page .toc a {
    display: block;
    padding: 7px 0;
    font-size: 0.84rem;
   
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 14px;
    transition: color 0.15s, border-left-color 0.15s, background-color 0.15s;
    line-height: 1.4;
}

.pillar-page .toc a:hover,
.pillar-page .toc a.active {
    color: var(--steel-blue);
    border-left-color: var(--accent-orange);
    background: rgba(74, 111, 165, 0.04);
}

.pillar-page .toc a.sub {
    padding-left: 28px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.pillar-page .toc a.sub:hover {
    color: var(--steel-blue);
}

.pillar-page .toc-cta {
    display: block;
    margin-top: 20px;
    padding: 10px 16px;
    background: var(--accent-orange);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
    border-left: none !important;
}

.pillar-page .toc-cta:hover {
    background: var(--accent-orange-dark);
    color: #fff;
    border-left-color: transparent;
}

/* ─── ARTICLE BODY ─── */
.pillar-page .article {
    max-width: 780px;
    min-width: 0;
}

/* Override section styles inside the article — remove full-width padding/backgrounds */
.pillar-page .article section {
    padding: 0;
    background: none;
}

.pillar-page .article section .inner {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Keep styling for special sections inside article */
.pillar-page .article .quote-section {
    background: var(--metal-dark);
    padding: 60px 0;
    margin: 48px -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pillar-page .article .ordering {
    padding: 48px 0;
}

.pillar-page .article .ordering .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pillar-page .article .ordering .step {
    padding: 20px 10px;
}

.pillar-page .article .ordering .step p {
    font-size: 0.8rem;
}

.pillar-page .article .faq {
    padding: 48px 0;
}

.pillar-page .article .inline-cta {
    background: linear-gradient(135deg, var(--metal-dark), var(--steel-blue-dark)) !important;
}

/* Quote form grid adaptation for article width */
.pillar-page .article .quote-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
}

/* Article h2 separators */
.pillar-page .article .section-title {
    margin: 56px 0 18px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    line-height: 1.15;
}

.pillar-page .article section:first-child .section-title {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* Product section in article should not inherit dark homepage section title color */
.pillar-page .article .products {
    color: var(--text-dark);
}

.pillar-page .article .products .section-label {
    color: var(--steel-blue);
}

.pillar-page .article .products .section-title {
    color: var(--text-dark);
}

.pillar-page .article .products .section-desc {
    color: var(--text-mid);
}

/* ─── CONTENT TYPOGRAPHY ─── */
.pillar-page section p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.85;
}

.pillar-page section p strong {
    color: var(--text-dark);
}

.pillar-page section p a {
    color: var(--steel-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 111, 165, 0.3);
    transition: border-color 0.2s, color 0.2s;
}

.pillar-page section p a:hover {
    border-bottom-color: var(--accent-orange);
    color: var(--accent-orange);
}

.pillar-page section ul,
.pillar-page section ol {
    margin: 0 0 18px 20px;
    color: var(--text-mid);
}

.pillar-page section li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ─── SUB-HEADING ─── */
.pillar-page .sub-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--steel-blue-dark);
    margin: 36px 0 12px;
    letter-spacing: 0.3px;
}

/* ─── SECTION FIGURES ─── */
.pillar-page section figure {
    margin: 24px 0;
}

.pillar-page section figure img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    display: block;
}

/* ─── HIGHLIGHT BLOCK ─── */
.pillar-page .highlight-block {
    background: var(--ice-blue);
    border-left: 4px solid var(--steel-blue);
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 24px 0;
}

.pillar-page .highlight-block h3,
.pillar-page .highlight-block h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pillar-page .highlight-block p {
    margin-bottom: 8px;
}

.pillar-page .highlight-block ul {
    margin-bottom: 0;
}

.pillar-page .highlight-block li {
    font-size: 0.92rem;
}

/* ─── CLUSTER LINK ─── */
.pillar-page .cluster-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-bottom: none;
    margin-top: 8px;
    transition: gap 0.2s;
}

.pillar-page .cluster-link:hover {
    gap: 10px;
    color: var(--accent-orange);
    border-bottom: none;
}

/* ─── WHY SOURCE ─── */
.pillar-page .why-source {
    background: linear-gradient(180deg, var(--ice-blue) 0%, #fff 100%);
}

/* ─── GRADES / SPECS TABLE ─── */
.pillar-page .grades-section {
    background: #fff;
}

.pillar-page .specs-table-wrap {
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(74, 111, 165, 0.04);
}

/* ─── INLINE CTA ─── */
.pillar-page .inline-cta {
    text-align: center;
    padding: 36px;
    margin: 32px 0;
    background: linear-gradient(135deg, var(--metal-dark), var(--steel-blue-dark));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pillar-page .inline-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 60px);
}

.pillar-page .inline-cta h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.pillar-page .inline-cta p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.pillar-page .inline-cta .cta-actions,
.pillar-page .inline-cta .btn-primary {
    position: relative;
    z-index: 2;
}

/* ─── INDUSTRIES LINK ─── */
.pillar-page .industries {
    background: #fff;
}

/* ─── CTA CHECKS ─── */
.pillar-page .cta-checks {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.pillar-page .cta-checks span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-page .cta-checks .check-icon {
    width: 22px;
    height: 22px;
    background: rgba(232, 114, 42, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── QUALITY QUOTE OVERRIDES ─── */
.pillar-page .quality-quote p {
    color: rgba(255, 255, 255, 0.86);
}

.pillar-page .quality-quote cite {
    color: rgba(255, 255, 255, 0.62);
}

.pillar-page .quality-quote cite strong {
    color: var(--accent-orange);
}

/* ─── RELATED PRODUCTS ─── */
.pillar-page .related-products {
    background: var(--metal-dark);
    color: #fff;
}

.pillar-page .related-products .section-label {
    color: var(--silver);
}

.pillar-page .related-products .section-title {
    color: #fff;
}

.pillar-page .related-products .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.pillar-page .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.pillar-page .related-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 28px 22px;
    transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.pillar-page .related-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.25s;
}

.pillar-page .related-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 111, 165, 0.4);
    transform: translateY(-3px);
}

.pillar-page .related-card:hover::before {
    opacity: 1;
}

.pillar-page .related-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 0.5px;
}

.pillar-page .related-card p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.pillar-page .related-card .link-arrow {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.pillar-page .related-card:hover .link-arrow {
    gap: 10px;
}

/* ─── WHATSAPP FLOAT ─── */
.pillar-page .whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    animation: pillarWhatsappPulse 2s ease-in-out infinite;
    will-change: transform;
}

.pillar-page .whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pillarWhatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ─── SCROLL REVEAL ─── */
.pillar-page .reveal {
    opacity: 1;
    transform: translateY(0);
}

.pillar-page .reveal.reveal-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.pillar-page .reveal.reveal-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-page .reveal-d1 { transition-delay: 0.1s; }
.pillar-page .reveal-d2 { transition-delay: 0.2s; }
.pillar-page .reveal-d3 { transition-delay: 0.3s; }
.pillar-page .reveal-d4 { transition-delay: 0.4s; }

/* ─── HERO SWITCH (desktop/mobile) ─── */
.pillar-page .hero-desktop-only {
    display: block;
}

.pillar-page .hero-mobile-only {
    display: none;
}

/* ─── PRODUCT CATEGORY CARDS ─── */
.pillar-page .product-category {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
}

.pillar-page .product-category:last-child {
    border-bottom: none;
}

.pillar-page .product-category figure {
    margin: 24px 0;
}

.pillar-page .product-category figure img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    display: block;
}

.pillar-page .product-category figure figcaption {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .pillar-page .pillar-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pillar-page .toc {
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
        background: var(--ice-blue);
        padding: 20px 24px;
        border-radius: 10px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .pillar-page .hero-desktop-only {
        display: none;
    }

    .pillar-page .hero-mobile-only {
        display: block;
    }

    .pillar-page .product-category {
        padding: 24px 0;
    }

    .pillar-page .inline-cta {
        padding: 28px 20px;
    }

    .pillar-page .highlight-block {
        padding: 18px 20px;
    }

    .pillar-page .cta-checks {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pillar-page .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .pillar-page .related-grid {
        grid-template-columns: 1fr;
    }

    .pillar-page .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
}