/* ==========================================================================
   PARENT PAGES MODERN DESIGN SYSTEM (Fasteners & Forgings Parent Hub Pages)
   Vanilla CSS with rich aesthetics, glassmorphic headers, micro-animations,
   crisp responsive grids, and high-conversion UI.
   ========================================================================== */

/* Outer Section Wrapper */
.parent-page-section {
    padding: 0 0 70px 0;
    background: #f8fafc;
    min-height: 80vh;
}

.parent-page-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumb Wrapper for Parent Hub Pages */
.parent-breadcrumb-wrapper {
    width: 100%;
    margin-bottom: 24px;
    clear: both;
}

/* Strictly hide legacy floating tag to guarantee zero image zoom overlap */
.card-tag {
    display: none !important;
}

/* Hero Banner / Page Intro */
.parent-page-hero {
    background: linear-gradient(135deg, #041b2d 0%, #002244 55%, #082846 100%);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 40px;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(4, 27, 45, 0.16);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-left: 5px solid #fdc900;
}

.parent-page-hero::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(253, 201, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.parent-hero-text {
    flex: 1 1 auto;
    z-index: 2;
}

.parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(253, 201, 0, 0.15);
    color: #fdc900;
    border: 1px solid rgba(253, 201, 0, 0.35);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.parent-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.parent-hero-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    max-width: 650px;
}

/* Hero Quick Stats / Trust Points */
.parent-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    z-index: 2;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 110px;
}

.hero-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fdc900;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Header */
.parent-grid-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.parent-grid-title {
    font-size: 22px;
    font-weight: 800;
    color: #041b2d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parent-grid-title i {
    color: #fdc900;
    font-size: 20px;
}

.parent-grid-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* Modern Product Cards Grid */
.modern-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

/* Product Card */
.modern-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(4, 27, 45, 0.12);
    border-color: #fdc900;
}

.modern-product-card a.card-click-overlay {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Image Box */
.card-img-box {
    width: 100%;
    height: 190px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.card-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.modern-product-card:hover .card-img-box img {
    transform: scale(1.08);
}

/* Card Body */
.card-content {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Category Subtype Chip inside Card Content - Zero clipping or image overlap */
.card-type-chip {
    display: inline-block;
    align-self: flex-start;
    background: #f1f5f9;
    color: #041b2d;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modern-product-card:hover .card-type-chip {
    background: #fdc900;
    color: #041b2d;
    border-color: #fdc900;
}

.card-content h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: #041b2d;
    margin: 0 0 12px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.modern-product-card:hover .card-content h3 {
    color: #b45309;
}

.card-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
    font-weight: 700;
    color: #041b2d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.card-footer-cta span {
    color: #041b2d;
    transition: color 0.2s ease;
}

.card-footer-cta i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #041b2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.25s ease;
}

.modern-product-card:hover .card-footer-cta span {
    color: #b45309;
}

.modern-product-card:hover .card-footer-cta i {
    background: #fdc900;
    color: #041b2d;
    transform: translateX(3px);
}

/* ==========================================================================
   MATERIALS & GRADES SHOWCASE (Modern Pill Grid with Interactive Links)
   ========================================================================== */
.parent-materials-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 36px 40px 36px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-top: 45px;
}

.materials-header-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

.materials-badge {
    display: inline-block;
    background: rgba(253, 201, 0, 0.18);
    color: #92400e;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.materials-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #041b2d;
    margin: 0 0 8px 0;
}

.materials-main-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.materials-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.material-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #fdc900;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.22s ease;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

.material-pill i.pill-check {
    color: #fdc900;
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.material-pill span.pill-text {
    flex: 1 1 auto;
    color: inherit;
}

.material-pill i.pill-arrow {
    color: #fdc900;
    font-size: 11px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.material-pill:hover {
    background: #041b2d !important;
    color: #ffffff !important;
    border-color: #041b2d !important;
    border-left-color: #fdc900 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(4, 27, 45, 0.15);
}

.material-pill:hover i.pill-check {
    transform: scale(1.2);
}

.material-pill:hover i.pill-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Banner at Bottom */
.parent-quote-banner {
    background: linear-gradient(135deg, #002244 0%, #041b2d 100%);
    border-radius: 12px;
    padding: 30px 40px;
    margin-top: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #ffffff;
    border: 1px solid #0f2e4a;
}

.parent-quote-banner h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.parent-quote-banner p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-banner-quote {
    background: #fdc900;
    color: #041b2d !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(253, 201, 0, 0.3);
}

.btn-banner-quote:hover {
    background: #ffffff;
    color: #041b2d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.btn-banner-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
}

.btn-banner-whatsapp:hover {
    background: #1ebc59;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Fluid Desktop, Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1199px) {
    .modern-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .materials-modern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-img-box {
        height: 170px;
    }
}

@media (max-width: 991px) {
    .parent-page-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 24px;
        gap: 20px;
    }
    .parent-hero-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    .modern-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .materials-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .parent-quote-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .banner-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .parent-page-section {
        padding: 20px 0 50px 0;
    }
    .parent-hero-title {
        font-size: 24px;
    }
    .hero-stat-card {
        flex: 1;
        padding: 8px 10px;
        min-width: 0;
    }
    .hero-stat-num {
        font-size: 16px;
    }
    .hero-stat-label {
        font-size: 9.5px;
    }
    .modern-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .card-img-box {
        height: 190px;
    }
    .materials-modern-grid {
        grid-template-columns: 1fr;
    }
    .parent-materials-section {
        padding: 24px 18px;
    }
    .materials-main-title {
        font-size: 21px;
    }
    .banner-actions a {
        width: 100%;
        justify-content: center;
    }
}
