/* ==========================================
   GLOBAL VARIABLES & RESET
=========================================== */
:root {
    /* Colors extracted from the provided Exotic Alloy Logo */
    --brand-blue: #6CA8D1; 
    --brand-dark-blue: #4A85AD; /* Slightly darker for hover states */
    --brand-black: #0B0B0B;
    --brand-white: #FFFFFF;
    --text-main: #333333;
    --text-light: #777777;
    --bg-light-grey: #F8F9FA;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--brand-white);
    overflow-x: hidden;
    overflow-x: clip; /* clip, unlike hidden, does not create a scroll container, so position: sticky keeps working */
}

/* ==========================================
   TYPOGRAPHY & BUTTONS
=========================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-black);
}

.text-primary {
    color: var(--brand-blue) !important;
}

/* Custom Outlined Button (Navbar) */
.custom-btn-outline {
    color: var(--brand-black);
    border: 1px solid var(--brand-black);
    border-radius: 2px; /* Industrial, sharp look */
    transition: all 0.3s ease;
}

.custom-btn-outline:hover {
    background-color: var(--brand-black);
    color: var(--brand-white);
}

/* Custom Solid Button (Hero) */
.custom-btn-solid {
    background-color: var(--brand-black); /* Or var(--brand-blue) depending on preference */
    border: none;
    border-radius: 2px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.custom-btn-solid:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION SECTION
=========================================== */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
}

/* Underline animation on hover for nav links */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
=========================================== */
.hero-section {
    min-height: 85vh;
    background-color: var(--brand-white);
}

/* The yellow/blue accent line under the hero title */
.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--brand-blue);
    border-radius: 2px;
}

/* Abstract Diagonal Shapes (Inspired by TorqBolt reference) */
.bg-shape {
    position: absolute;
    z-index: 0;
    transform: skewY(-15deg);
}

.shape-1 {
    width: 120%;
    height: 150px;
    background-color: var(--brand-blue);
    opacity: 0.8;
    bottom: -50px;
    right: -10%;
}

.shape-2 {
    width: 50%;
    height: 300px;
    background-color: #f1f5f9; /* subtle light grey/blue */
    top: 10%;
    right: -20%;
    z-index: 0;
}

.hero-img {
    filter: drop-shadow(0px 15px 20px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* ==========================================
   MATERIALS SECTION
=========================================== */
.materials-section {
    position: relative;
    z-index: 2; /* To sit above hero diagonal lines */
}

.material-card {
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent !important;
}

.material-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--brand-blue) !important;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.icon-wrapper {
    height: 70px;
    width: 70px;
    background-color: rgba(108, 168, 209, 0.1); /* light tint of brand blue */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.material-card:hover .icon-wrapper {
    background-color: var(--brand-blue);
}

.material-card:hover .icon-wrapper i {
    color: var(--brand-white) !important;
}

.learn-more {
    color: var(--brand-black);
    transition: color 0.3s;
}

.learn-more:hover {
    color: var(--brand-blue);
}

/* ==========================================
   HEADER & TOP BAR UPDATES
=========================================== */
.top-bar {
    font-size: 14px; /* Slightly larger text */
    letter-spacing: 0.5px;
}

.social-links a {
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Hover effects for social icons */
.social-links a:hover {
    color: var(--brand-blue) !important;
    transform: translateY(-2px);
}

/* Specific color for WhatsApp on hover if desired */
.social-links a:has(.fa-whatsapp):hover {
    color: #25D366 !important;
}

/* Adjusting the vertical alignment of contact icons */
.contact-info i {
    vertical-align: middle;
}

/* Navbar Logo Size Adjustment */
.navbar-brand img {
    height: 80px; 
    width: auto;
    transition: transform 0.3s ease;
}

/* ==========================================
   DROPDOWN FIX & STYLING
=========================================== */
/* Open dropdown on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
    }
}

.dropdown-menu {
    border-radius: 0;
    padding: 1rem 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: var(--brand-blue);
    color: white;
}


/* Remove the default Bootstrap caret arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* Ensure Nav Link items stay on one line */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevents the icon from wrapping to a new line */
}

/* Rotate the icon when the dropdown is open (Interactive touch) */
.nav-item.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--brand-blue); /* Matches your logo color */
}












/* ==========================================
   PRODUCTS SECTION (IMAGE BASED)
=========================================== */
.products-section {
    background-color: var(--brand-white);
    position: relative;
    z-index: 1;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: var(--brand-black);
}

.product-card {
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04) !important;
}

/* Container for the image to ensure uniform sizing */
.img-wrapper {
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure images fit the box perfectly without stretching */
.product-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Interactive Hover Effects */
.product-card-link:hover .product-card {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.product-card-link:hover .product-icon-img {
    transform: scale(1.15); /* Adds a nice zoom effect to the image on hover */
}

.product-card-link:hover h6 {
    color: var(--brand-blue);
    transition: color 0.3s ease;
}

.title-underline.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}















/* ==========================================
   ENGINEERED APPLICATIONS SECTION (ADVANCED)
=========================================== */
.app-section-advanced {
    background-color: #ffffff;
    /* Subtle Blueprint / Schematic Grid Background */
    background-image: 
        linear-gradient(rgba(108, 168, 209, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 168, 209, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
}

/* Base card drop shadow wrapper */
.tech-card {
    background: transparent;
    position: relative;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.04));
    transition: transform 0.4s ease;
    cursor: crosshair; /* Industrial feel */
}

/* The actual card with the Machined/Chamfered cut corner */
.tech-card-inner {
    background: var(--brand-white);
    height: 100%;
    /* Cuts the top right corner by 40px */
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Sweeping Background Color Fill */
.hover-sweep {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--brand-blue);
    transition: height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

/* Hexagon Container for Icons */
.hex-icon {
    width: 65px;
    height: 75px;
    background: #f0f4f8; /* Soft grey-blue */
    /* Mathematical CSS Hexagon */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-blue);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Watermark Rotating Gear */
.card-watermark {
    position: absolute;
    right: -25px;
    bottom: -25px;
    font-size: 9rem;
    color: rgba(0,0,0,0.02);
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.5s ease;
}

/* ==========================================
   CARD HOVER PHYSICS
=========================================== */
.tech-card:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 15px 30px rgba(108, 168, 209, 0.2));
}

.tech-card:hover .hover-sweep {
    height: 100%; /* Fills the card */
}

/* Turn text white on hover */
.tech-card:hover .card-title-text, 
.tech-card:hover .card-desc-text {
    color: var(--brand-white) !important;
    transition: color 0.3s ease 0.1s;
}

/* Invert Hexagon Colors */
.tech-card:hover .hex-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--brand-white);
    transform: scale(1.1);
}

/* Spin and reveal the gear */
.tech-card:hover .card-watermark {
    transform: rotate(90deg) scale(1.1);
    color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   AMBIENT SECTION ANIMATIONS
=========================================== */
.floating-shape {
    position: absolute;
    opacity: 0.03;
    background: var(--brand-black);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
    animation: floatRotate 20s infinite linear;
}

.shape-hex-large {
    width: 300px;
    height: 350px;
    top: -50px;
    right: -100px;
}

.shape-hex-small {
    width: 150px;
    height: 175px;
    bottom: 50px;
    left: -50px;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes floatRotate {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(40px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}













/* ==========================================
   FOOTER SECTION
=========================================== */
.site-footer {
    background-color: #f1f4f6; /* Light grey base */
    border-top: 4px solid var(--brand-blue);
    overflow: hidden;
}

/* Simulated dotted map background effect */
.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: radial-gradient(#d1d8df 2px, transparent 2px);
    background-size: 20px 20px; /* Adjust spacing of dots */
    z-index: 0;
}

.footer-heading {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Hover effect on links */
.footer-links a:hover {
    color: var(--brand-blue);
    padding-left: 5px; /* Slight nudge to the right on hover */
}

.footer-icon {
    color: var(--brand-blue);
}

.hover-primary:hover {
    color: var(--brand-blue) !important;
}

/* Social Icons styling */
.footer-social a {
    color: var(--brand-black);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--brand-blue);
    transform: translateY(-3px);
}

/* ==========================================
   FOOTER BOTTOM BAR
=========================================== */
.footer-bottom {
    background-color: var(--brand-black); /* Industrial black bottom bar */
    color: var(--brand-white);
    position: relative;
    z-index: 2;
}

.footer-bottom-links a {
    color: var(--brand-white);
    text-decoration: none;
    margin: 0 5px;
    transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 0.7;
}








/* ==========================================
   PAGE BANNER SECTION
=========================================== */
.page-banner {
    /* Replace with your actual banner image link */
    background: url('banner-background-image.jpg') no-repeat center center; 
    background-size: cover;
    height: 350px;
    border-bottom: 5px solid var(--brand-blue);
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0.6));
    z-index: 0;
}

.banner-link {
    transition: color 0.3s ease;
}

.banner-link:hover {
    color: var(--brand-blue) !important;
}

/* Breadcrumb Divider Color */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

















/* ==========================================
   CREATIVE MATERIALS CONSOLE SECTION
=========================================== */
.material-console-section {
    background-color: #fafbfc; /* Extremely light grey/blue for contrast */
    overflow: hidden;
}

/* Massive background typography for depth */
.ambient-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

.console-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- LEFT COLUMN: THE NAVIGATION --- */
.console-sidebar {
    background-color: var(--brand-black);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.custom-material-nav {
    padding: 20px 0;
}

.custom-material-nav .nav-link {
    border-radius: 0;
    color: rgba(255,255,255,0.6);
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.custom-material-nav .nav-link:hover {
    color: var(--brand-white);
    background: rgba(255,255,255,0.03);
    padding-left: 35px;
}

.custom-material-nav .nav-link.active {
    background-color: rgba(108, 168, 209, 0.1);
    color: var(--brand-white);
    border-left: 4px solid var(--brand-blue);
}

.nav-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.custom-material-nav .nav-link.active .nav-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-blue);
}

/* --- RIGHT COLUMN: THE DATA DISPLAY --- */
.console-display {
    background-color: #ffffff;
    /* Subtle Technical Grid Background */
    background-image: 
        linear-gradient(rgba(108, 168, 209, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 168, 209, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 500px;
}

.pane-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 15rem;
    color: rgba(108, 168, 209, 0.04);
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
}

.pane-title {
    color: var(--brand-black);
    position: relative;
    z-index: 1;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
    padding-bottom: 15px;
    display: inline-block;
}

/* --- THE MATERIAL CHIPS (SUB-MATERIALS) --- */
.material-chip {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #e0e0e0;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    /* Chamfered industrial cut on top-right */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.material-chip:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(108, 168, 209, 0.3);
}

/* --- ANIMATIONS FOR TAB SWITCHING --- */
.tab-pane.active .material-chip {
    animation: chipFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* Stagger the animation for the first 12 chips for a cascading effect */
.tab-pane.active .material-chip:nth-child(1) { animation-delay: 0.05s; }
.tab-pane.active .material-chip:nth-child(2) { animation-delay: 0.1s; }
.tab-pane.active .material-chip:nth-child(3) { animation-delay: 0.15s; }
.tab-pane.active .material-chip:nth-child(4) { animation-delay: 0.2s; }
.tab-pane.active .material-chip:nth-child(5) { animation-delay: 0.25s; }
.tab-pane.active .material-chip:nth-child(6) { animation-delay: 0.3s; }
.tab-pane.active .material-chip:nth-child(7) { animation-delay: 0.35s; }
.tab-pane.active .material-chip:nth-child(8) { animation-delay: 0.4s; }
.tab-pane.active .material-chip:nth-child(9) { animation-delay: 0.45s; }
.tab-pane.active .material-chip:nth-child(10) { animation-delay: 0.5s; }
.tab-pane.active .material-chip:nth-child(11) { animation-delay: 0.55s; }
.tab-pane.active .material-chip:nth-child(12) { animation-delay: 0.6s; }

@keyframes chipFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE MOBILE FIX FOR TABS --- */
@media (max-width: 991px) {
    .custom-material-nav {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0;
    }
    
    .custom-material-nav .nav-link {
        padding: 15px 25px;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        justify-content: center;
    }

    .custom-material-nav .nav-link.active {
        border-left: none;
        border-bottom: 3px solid var(--brand-blue);
    }

    .nav-arrow {
        display: none; /* Hide arrows on mobile horizontally scrolling tabs */
    }
    
    .console-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .console-display {
        min-height: auto;
    }
}












/* ==========================================
   MATERIAL SPECIFIC PAGE
=========================================== */
.tracking-wide {
    letter-spacing: 1.5px;
}

/* Custom Search Box */
.search-box {
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border-radius: 6px;
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-blue);
    font-size: 1.1rem;
    z-index: 2;
}

.custom-search-input {
    padding: 18px 20px 18px 50px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.custom-search-input:focus {
    background-color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(108, 168, 209, 0.25);
}

/* Grade Specification Cards */
.grade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    text-decoration: none;
    color: var(--brand-black);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.grade-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--brand-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.grade-title {
    position: relative;
    z-index: 1;
}

.grade-arrow {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Hover Physics */
.grade-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(108, 168, 209, 0.15) !important;
    color: var(--brand-blue);
}

.grade-card:hover::before {
    transform: scaleY(1);
}

.grade-card:hover .grade-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-blue);
}
















/* ==========================================
   MATERIAL DATASHEET SPECIFICS
=========================================== */

/* Drop shadow for standalone product images (like in the intro) */
.drop-shadow-heavy {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Background Patterns */
.bg-hex-pattern {
    position: absolute;
    top: -50px;
    right: -100px;
    font-size: 40rem;
    color: rgba(108, 168, 209, 0.03); /* Faint brand blue */
    z-index: 0;
    pointer-events: none;
}

.bg-gear-pattern {
    position: absolute;
    bottom: -100px;
    left: -100px;
    font-size: 35rem;
    color: rgba(0, 0, 0, 0.02);
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg);
}

/* --- 12 Image Product Grid --- */
.product-gallery-item {
    border: 1px solid #eaeaea;
    cursor: pointer;
}

.product-gallery-item img {
    transition: transform 0.5s ease;
    aspect-ratio: 4/3;
    object-fit: contain; /* Ensures standard fastening images fit nicely */
    padding: 15px;
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 11, 11, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-gallery-item:hover img {
    transform: scale(1.1);
}

.product-gallery-item:hover .product-overlay {
    opacity: 1;
}

/* --- Lists (Specifications & Characteristics) --- */
.custom-check-list {
    list-style: none;
    padding-left: 0;
}

.custom-check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.custom-check-list li::before {
    content: '\f054'; /* Chevron Right from FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-blue);
    font-size: 0.85rem;
}

.custom-arrow-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.custom-arrow-list li::before {
    content: '\f101'; /* Double Right Arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--brand-blue);
    font-size: 1rem;
}

/* --- Properties Tables --- */
.table-container {
    border: 1px solid rgba(0,0,0,0.05);
}

.table-container h5 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
}

.table td, .table th {
    padding: 15px;
    border-bottom-color: #f1f1f1;
}

.table-hover tbody tr:hover {
    background-color: rgba(108, 168, 209, 0.05); /* Soft brand blue hover */
}

/* --- PDF Button --- */
.pdf-btn {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pdf-btn:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-3px);
}







/* ==========================================
   GLOBAL SPEED OVERRIDES
=========================================== */
/* Make all card hover physical reactions faster */
.material-card, .grade-card, .tech-card, .product-gallery-item img, .app-card {
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Speed up the tab chip reveal animations */
.tab-pane.active .material-chip {
    animation-duration: 0.25s !important;
}

/* Speed up background icon sweeps and rotates */
.card-bg-icon, .hover-sweep, .card-watermark {
    transition: all 0.3s ease !important;
}

/* Custom background color for technical specification table headers */
.header-styled-table .table-dark-blue {
    background-color: #0d47a1 !important; /* Deep industrial blue match */
    color: #ffffff;
}

.header-styled-table th {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 8px !important;
}























/* ==========================================
   ABOUT US PAGE STYLES
=========================================== */

/* Watermark Background */
.bg-watermark-right {
    position: absolute;
    top: 10%;
    right: -5%;
    font-size: 45rem;
    color: rgba(0, 0, 0, 0.02);
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
}

/* Image Grid Styling */
.experience-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 2;
    border: 5px solid #ffffff; /* Gives it a cutout look against the images */
}

/* Stats Section */
.stats-section {
    border-top: 5px solid var(--brand-blue);
}

.stat-box i {
    font-size: 2.5rem;
}

/* Core Value Cards */
.value-card {
    border: 1px solid rgba(0,0,0,0.04);
    border-bottom: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.value-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--brand-blue);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.value-card:hover .value-icon {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    transform: rotateY(180deg);
}




























/* ==========================================
   CONTACT US PAGE DESIGN
=========================================== */

/* Watermark Element */
.bg-watermark-left {
    position: absolute;
    bottom: -15%;
    left: -10%;
    font-size: 50rem;
    color: rgba(0, 0, 0, 0.015);
    z-index: 0;
    pointer-events: none;
}

/* Hub Communication Cards */
.contact-hub-card {
    background-color: var(--brand-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.hub-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(108, 168, 209, 0.08); /* Transparent Brand Blue */
    transition: all 0.25s ease !important;
}

.hub-action-link {
    color: var(--brand-black);
    transition: color 0.2s ease;
}

/* Card Hover Animations */
.contact-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(108, 168, 209, 0.08) !important;
    border-color: rgba(108, 168, 209, 0.2);
}

.contact-hub-card:hover .hub-icon-wrapper {
    background-color: var(--brand-blue);
}

.contact-hub-card:hover .hub-icon-wrapper i {
    color: #ffffff !important;
}

.contact-hub-card:hover .hub-action-link {
    color: var(--brand-blue);
}

/* Layout Constraint Helper */
.max-w-md {
    max-width: 480px;
}

/* Map Frame Control rules */
.vh-50 {
    height: 50vh;
    min-height: 400px;
}

.absolute-map {
    top: 0;
    left: 0;
    filter: grayscale(10%) contrast(105%); /* Gives it a slight architectural technical clean look */
}





























/* ==========================================
   UNDER CONSTRUCTION / 404 SECTION
=========================================== */
.construction-section {
    min-height: 70vh; /* Keeps it tall but leaves room for header/footer */
    display: flex;
    align-items: center;
    background-color: #fafbfc;
    /* Technical Blueprint Background */
    background-image: 
        linear-gradient(rgba(108, 168, 209, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 168, 209, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow: hidden;
}

.construction-card {
    background: #ffffff;
    border-top: 5px solid var(--brand-blue);
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

/* Watermark */
.error-code-watermark {
    font-size: 12rem;
    font-weight: 900;
    color: rgba(108, 168, 209, 0.03); /* Faint brand blue */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    letter-spacing: -5px;
    pointer-events: none;
}

/* Gear Animations */
.gear-animation-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.gear-main {
    font-size: 7rem;
    color: var(--brand-blue);
    animation: spin 12s linear infinite;
    display: inline-block;
}

.gear-small {
    font-size: 3.5rem;
    color: var(--brand-black);
    position: absolute;
    bottom: -15px;
    right: -15px;
    animation: spin-reverse 8s linear infinite;
    display: inline-block;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

/* Search Box Tweaks */
.search-icon-404 {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-blue);
    z-index: 4;
}
.search-box-404 .form-control {
    padding-left: 50px;
    border-radius: 8px;
    background-color: #f8f9fa;
}


















/* ==========================================
   SMART GLOBAL SEARCH STYLES
=========================================== */
.custom-search-group {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.custom-search-group:focus-within {
    border-color: var(--brand-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 168, 209, 0.15);
}

.custom-search-group input {
    background-color: transparent;
    font-size: 0.9rem;
}

/* Dropdown Container */
#searchSuggestions {
    top: 110%;
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Individual Suggestion Items */
.suggestion-item {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.suggestion-item:hover, .suggestion-item.active {
    background-color: #f8f9fa;
    border-left-color: var(--brand-blue);
}

.suggestion-title {
    color: var(--brand-black);
    font-weight: 600;
}

.suggestion-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-blue);
}

.hover-primary:hover { color: var(--brand-blue) !important; }






/* ==========================================
   FULL WIDTH SWIPER SLIDER STYLES
=========================================== */
.mySwiper {
    width: 100%;
    /* Use viewport height (vh) for a responsive full-screen feel */
    height: 70vh; 
    min-height: 400px;
    max-height: 700px;
    border-radius: 0; /* Removed rounded corners */
}

.mySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111111; /* Dark fallback background */
}

.mySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Absolutely critical: keeps the image from stretching while filling the width */
    object-position: center center; /* Keeps the focus on the middle of the image */
}










/* ==========================================
   PRODUCT GALLERY STYLES
=========================================== */
.gallery-section {
    background-color: #fafbfc;
}

.gallery-item {
    height: 280px; /* Fixed height for uniform grid blocks */
    background-color: #111; /* Dark background prevents white flashes during loading */
    cursor: pointer;
    position: relative;
    display: block;
}

/* Image scaling and fitting */
.gallery-item img {
    object-fit: cover; /* Prevents image distortion */
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    filter: brightness(0.95); /* Slightly dims the image initially */
}

/* Hover Interaction */
.gallery-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.gallery-item:hover img {
    transform: scale(1.08); /* Premium slow zoom effect */
    filter: brightness(1.1) contrast(1.05); /* Brightens and pops the metal textures */
}

/* Responsive height adjustments for smaller screens */
@media (max-width: 768px) {
    .gallery-item {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 180px;
    }
}

/* ==========================================
   PRODUCT PAGE STYLES (Moved from bolts.html)
========================================== */
/* Product Page Specific Variables & Enhancements */
        :root {
            --brand-blue: #6CA8D1;
            --brand-dark-blue: #4A85AD;
            --brand-black: #0B0B0B;
            --brand-charcoal: #1e293b;
            --brand-white: #FFFFFF;
            --bg-light-grey: #F8F9FA;
            --border-soft: #e2e8f0;
            --accent-gold: #f59e0b;
        }

        /* Hero Banner Modifications */
        .product-banner-badge {
            background-color: rgba(108, 168, 209, 0.2);
            color: #bfe0f7;
            border: 1px solid rgba(108, 168, 209, 0.4);
            font-size: 0.85rem;
            letter-spacing: 1.5px;
        }

        /* Quick Specs Metric Strip */
        .spec-strip {
            background: #ffffff;
            border-bottom: 1px solid var(--border-soft);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        }

        .spec-metric-item {
            padding: 1.25rem 1rem;
            border-right: 1px dashed var(--border-soft);
            transition: all 0.3s ease;
        }

        .spec-metric-item:last-child {
            border-right: none;
        }

        .spec-metric-item:hover {
            background-color: #f8fafc;
        }

        .spec-metric-icon {
            width: 46px;
            height: 46px;
            border-radius: 8px;
            background: rgba(108, 168, 209, 0.12);
            color: var(--brand-dark-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }

        /* Product Overview Card */
        .overview-image-container {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-soft);
            background: #ffffff;
            padding: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

        .overview-img-main {
            max-height: 420px;
            width: 100%;
            object-fit: contain;
            transition: transform 0.5s ease;
        }

        .overview-image-container:hover .overview-img-main {
            transform: scale(1.04);
        }

        .quality-stamp-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--brand-black);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1px;
            border-left: 3px solid var(--brand-blue);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Feature Pills */
        .feature-pill {
            display: inline-flex;
            align-items: center;
            background: #f1f5f9;
            color: var(--brand-charcoal);
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            margin: 4px 4px 4px 0;
            border: 1px solid #e2e8f0;
            transition: all 0.25s ease;
        }

        .feature-pill i {
            color: var(--brand-blue);
            margin-right: 6px;
        }

        .feature-pill:hover {
            background: var(--brand-blue);
            color: #ffffff;
            border-color: var(--brand-blue);
            transform: translateY(-2px);
        }

        .feature-pill:hover i {
            color: #ffffff;
        }

        /* Bolt Type Filter Tabs */
        .bolt-filter-btn {
            background: #ffffff;
            border: 1px solid var(--border-soft);
            color: var(--text-main);
            padding: 8px 20px;
            font-weight: 600;
            font-size: 0.9rem;
            border-radius: 30px;
            transition: all 0.3s ease;
            margin: 4px;
            cursor: pointer;
        }

        .bolt-filter-btn:hover {
            border-color: var(--brand-blue);
            color: var(--brand-blue);
        }

        .bolt-filter-btn.active {
            background: var(--brand-black);
            color: #ffffff;
            border-color: var(--brand-black);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Bolt Product Card Grid */
        .bolt-type-card {
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid var(--border-soft);
            transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .bolt-type-card:hover {
            transform: translateY(-6px);
            border-color: var(--brand-blue);
            box-shadow: 0 15px 35px rgba(108, 168, 209, 0.18);
        }

        .bolt-card-header {
            padding: 1.25rem 1.25rem 0.5rem 1.25rem;
            background: #ffffff;
            border-bottom: 1px dashed #f1f5f9;
        }

        .bolt-std-tag {
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 4px;
            background: rgba(108, 168, 209, 0.12);
            color: var(--brand-dark-blue);
            display: inline-block;
            margin-bottom: 0.5rem;
            letter-spacing: 0.5px;
        }

        .bolt-card-body {
            padding: 1.25rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .bolt-specs-list {
            list-style: none;
            padding-left: 0;
            margin-bottom: 1.25rem;
            font-size: 0.85rem;
        }

        .bolt-specs-list li {
            padding: 4px 0;
            color: #64748b;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #f8fafc;
        }

        .bolt-specs-list li span.label {
            font-weight: 600;
            color: var(--brand-charcoal);
        }

        .bolt-specs-list li span.val {
            text-align: right;
            color: #475569;
        }

        .bolt-action-btn {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: var(--brand-charcoal);
            font-size: 0.85rem;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 4px;
            text-decoration: none;
            text-align: center;
            display: block;
            transition: all 0.25s ease;
        }

        .bolt-type-card:hover .bolt-action-btn {
            background: var(--brand-blue);
            color: #ffffff;
            border-color: var(--brand-blue);
        }

        /* Material Category Tabs & Cards */
        .material-nav-pills .nav-link {
            border-radius: 6px;
            padding: 12px 20px;
            font-weight: 600;
            color: #475569;
            background: #ffffff;
            border: 1px solid var(--border-soft);
            margin: 0 6px 8px 0;
            transition: all 0.25s ease;
        }

        .material-nav-pills .nav-link.active {
            background-color: var(--brand-black);
            color: #ffffff;
            border-color: var(--brand-black);
        }

        .material-grade-card {
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid var(--border-soft);
            padding: 1.5rem;
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .material-grade-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--brand-blue);
            transition: width 0.3s ease;
        }

        .material-grade-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
        }

        .material-grade-card:hover::before {
            width: 6px;
        }

        .grade-chip {
            display: inline-block;
            background: #f1f5f9;
            color: var(--brand-charcoal);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 4px;
            margin: 2px;
            border: 1px solid #e2e8f0;
        }

        /* Interactive Weight Calculator Section */
        .calculator-wrapper {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            border-radius: 12px;
            padding: 2.5rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            position: relative;
            overflow: hidden;
        }

        .calculator-wrapper::after {
            content: '\f085';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: -30px;
            bottom: -30px;
            font-size: 15rem;
            color: rgba(255, 255, 255, 0.02);
            pointer-events: none;
        }

        .calc-form-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #94a3b8;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .calc-form-control, .calc-form-select {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #ffffff !important;
            border-radius: 6px;
            padding: 10px 14px;
            font-weight: 500;
        }

        .calc-form-control:focus, .calc-form-select:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(108, 168, 209, 0.3);
            color: #ffffff;
        }

        .calc-form-select option {
            background: #1e293b;
            color: #ffffff;
        }

        .calc-results-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            padding: 1.75rem;
            backdrop-filter: blur(10px);
        }

        .result-box {
            background: rgba(108, 168, 209, 0.1);
            border: 1px solid rgba(108, 168, 209, 0.3);
            border-radius: 8px;
            padding: 1.25rem;
            text-align: center;
        }

        .result-value {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--brand-blue);
            line-height: 1.1;
        }

        .result-unit {
            font-size: 0.9rem;
            color: #cbd5e1;
            font-weight: 500;
        }

        /* Quality Testing Workflow Cards */
        .qa-step-card {
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid var(--border-soft);
            padding: 1.75rem;
            text-align: center;
            height: 100%;
            position: relative;
            transition: all 0.3s ease;
        }

        .qa-step-number {
            width: 36px;
            height: 36px;
            background: var(--brand-black);
            color: #ffffff;
            font-weight: 700;
            font-size: 0.9rem;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: -18px;
            left: 50%;
            transform: translateX(-50%);
            border: 3px solid #ffffff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .qa-step-icon {
            font-size: 2rem;
            color: var(--brand-blue);
            margin-top: 10px;
            margin-bottom: 15px;
        }

        .qa-step-card:hover {
            transform: translateY(-5px);
            border-color: var(--brand-blue);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
        }

        /* Coating Grid Cards */
        .coating-badge-card {
            background: #ffffff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 1.25rem;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            transition: all 0.3s ease;
        }

        .coating-badge-card:hover {
            border-color: var(--brand-blue);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            transform: translateY(-3px);
        }

        .coating-color-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 3px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        /* FAQ Accordion Customization */
        .custom-bolt-accordion .accordion-item {
            border: 1px solid var(--border-soft);
            border-radius: 8px !important;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .custom-bolt-accordion .accordion-button {
            background-color: #ffffff;
            font-weight: 600;
            color: var(--brand-charcoal);
            padding: 18px 22px;
            box-shadow: none;
        }

        .custom-bolt-accordion .accordion-button:not(.collapsed) {
            background-color: #f8fafc;
            color: var(--brand-dark-blue);
            border-bottom: 1px solid var(--border-soft);
        }

        .custom-bolt-accordion .accordion-button::after {
            background-size: 1rem;
        }

        /* Quote Form Customization */
        .quote-form-card {
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            padding: 2.5rem;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
        }

        .form-floating > .form-control:focus ~ label,
        .form-floating > .form-control:not(:placeholder-shown) ~ label {
            color: var(--brand-dark-blue);
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(108, 168, 209, 0.25);
        }

        /* Floating Toast for RFQ confirmation */
        .toast-notification {
            position: fixed;
            bottom: 10px;
            right: 30px;
            background: #0f172a;
            color: #ffffff;
            padding: 16px 24px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border-left: 5px solid var(--brand-blue);
            z-index: 9999;
            transform: translateY(120%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .toast-notification.show {
            transform: translateY(0);
        }
/* ==========================================
   MOBILE OPTIMIZATIONS & RESPONSIVE FIXES
=========================================== */
/* Prevent horizontal scroll bleed on mobile browsers */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip; /* see body rule above: keeps sticky navbar / sidebar working */
}

@media (max-width: 767.98px) {
    /* 1. Prevent wide badges/buttons from forcing horizontal width */
    .badge, .btn {
        white-space: normal !important;
        line-height: 1.4 !important;
        height: auto !important;
    }
    
    /* 2. Optimize Font Sizes for Mobile Readability */
    .display-4 { font-size: 2.2rem !important; }
    .display-5 { font-size: 1.8rem !important; }
    .display-6 { font-size: 1.6rem !important; }
    h1, h2 { font-size: 1.7rem !important; }
    h3, h4 { font-size: 1.3rem !important; }
    
    /* 3. Reduce Vertical Spacing to minimize mobile scrolling */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .mb-5 { margin-bottom: 2rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    
    /* 4. Fix Hero Banner */
    .page-banner {
        height: auto !important;
        min-height: 280px;
        padding: 3rem 0 !important;
    }
    
    /* 5. Fix UI Component Spacing */
    .calculator-wrapper {
        padding: 1.5rem !important;
    }
    .result-box {
        padding: 1rem !important;
    }
    
    /* 6. Scrollable Tabs (Material Matrix) */
    .material-nav-pills, .nav-pills {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        border-bottom: 1px solid #dee2e6;
    }
    .material-nav-pills .nav-item {
        white-space: nowrap;
    }
    
    /* 7. Ensure SVGs and Images scale */
    svg, img {
        max-width: 100%;
        height: auto !important;
    }
    /* 8. Keep the navbar logo at a sensible size (rule 7 would otherwise expand it to full width) */
    .navbar-brand img {
        height: 56px !important;
        width: auto;
    }
}


/* ==========================================
   SUB-PRODUCT DETAIL PAGES (hex-bolts.html and siblings)
   Prefix: pd-   Sticky offsets --nav-h / --toc-h are set by the page script.
=========================================== */
:root {
    --nav-h: 100px;
    --toc-h: 52px;
    --pd-ink: #0f172a;
    --pd-line: #e2e8f0;
    --pd-radius: 10px;
}

/* ---------- Hero ---------- */
.pd-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 2.5rem 0 2rem;
    color: #fff;
    overflow: hidden;
    overflow: clip; /* clip, not hidden: AOS slide-in offsets must not turn the hero into a sideways-scrollable box on phones */
}
.pd-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.86) 55%, rgba(11, 11, 11, 0.72) 100%);
}
.pd-hero__grid {
    position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
    background-image: linear-gradient(rgba(108, 168, 209, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 168, 209, 0.14) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.pd-crumb { background: transparent; padding: 0; font-size: 0.9rem; }
.pd-crumb .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; }
.pd-crumb .breadcrumb-item a:hover { color: var(--brand-blue); }
.pd-crumb .breadcrumb-item.active { color: var(--brand-blue); font-weight: 600; }
.pd-crumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }
.pd-hero__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.pd-hero__lead { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; line-height: 1.7; max-width: 640px; margin-bottom: 1.5rem; }
.pd-hero__lead strong { color: #fff; }
.pd-btn-ghost {
    color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 2px;
    padding: 12px 24px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.04);
}
.pd-btn-ghost:hover { background: #fff; color: var(--brand-black); border-color: #fff; transform: translateY(-2px); }
.pd-hero__usps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.pd-hero__usps li { display: flex; align-items: center; gap: 0.5rem; }
.pd-hero__usps i { color: var(--brand-blue); }

.pd-hero__visual { position: relative; padding: 1.5rem 1.5rem 2rem; }
.pd-hero__frame {
    background: #fff; border-radius: 16px; padding: 1.25rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(-2deg); transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pd-hero__frame img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pd-hero__visual:hover .pd-hero__frame { transform: rotate(0deg) scale(1.02); }
.pd-chip {
    position: absolute; background: rgba(15, 23, 42, 0.92); color: #fff; border: 1px solid rgba(108, 168, 209, 0.5);
    border-radius: 30px; padding: 6px 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); animation: pdFloat 6s ease-in-out infinite;
}
.pd-chip b { color: var(--brand-blue); font-weight: 700; margin-right: 4px; }
.pd-chip--a { top: 0; left: 0; animation-delay: 0s; }
.pd-chip--b { right: 0; top: 45%; animation-delay: -2s; }
.pd-chip--c { bottom: 0; left: 12%; animation-delay: -4s; }
@keyframes pdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.pd-kpis {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 2.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.pd-kpis li { padding: 1.25rem 1.5rem 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.pd-kpis li:first-child { border-left: 0; padding-left: 0; }
.pd-kpis strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -0.02em; }
.pd-kpis strong.pd-mono { font-family: ui-monospace, Consolas, "Courier New", monospace; color: var(--brand-blue); font-weight: 600; }
.pd-kpis span:not([data-count]) { display: block; margin-top: 2px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Sticky "On this page" bar ---------- */
.pd-toc {
    position: sticky; top: var(--nav-h); z-index: 1019;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pd-line); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.pd-toc__inner { display: flex; align-items: center; gap: 1rem; min-height: 52px; }
.pd-toc__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #64748b; white-space: nowrap; }
.pd-toc__list {
    display: flex; gap: 0.25rem; margin: 0; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.pd-toc__list::-webkit-scrollbar { display: none; }
.pd-toc__list a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; white-space: nowrap;
    font-size: 0.82rem; font-weight: 600; color: #475569; text-decoration: none; transition: all 0.2s;
}
.pd-toc__list a span { font-family: ui-monospace, Consolas, monospace; font-size: 0.7rem; color: var(--brand-blue); }
.pd-toc__list a:hover { background: #f1f5f9; color: var(--pd-ink); }
.pd-toc__list a.is-active { background: var(--pd-ink); color: #fff; }
.pd-toc__list a.is-active span { color: var(--brand-blue); }
.pd-toc__cta {
    white-space: nowrap; font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--brand-black);
    padding: 8px 16px; border-radius: 2px; text-decoration: none; transition: background 0.3s;
}
.pd-toc__cta:hover { background: var(--brand-blue); color: #fff; }
.pd-toc__progress {
    position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-blue));
    transform: scaleX(0); transform-origin: left; transition: transform 0.1s linear;
}

/* ---------- Layout ---------- */
.pd-layout { padding-top: 3rem; padding-bottom: 3rem; }
.pd-main { min-width: 0; }
.pd-sec { position: relative; padding: 1rem 0 3rem; scroll-margin-top: calc(var(--nav-h) + var(--toc-h) + 12px); }
.pd-sec + .pd-sec { border-top: 1px dashed var(--pd-line); padding-top: 3rem; }
.pd-sec__head { position: relative; margin-bottom: 1.5rem; padding-right: 5rem; }
.pd-sec__head h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.01em; margin: 0.25rem 0 0.75rem; }
.pd-sec__num {
    position: absolute; right: 0; top: -0.6rem; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 1px #cbd5e1; pointer-events: none; user-select: none;
}
.pd-lead { font-size: 1.1rem; line-height: 1.7; color: var(--pd-ink); font-weight: 500; }
.pd-main p a, .pd-main td a, .pd-main dd a { color: var(--brand-dark-blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(74, 133, 173, 0.35); }
.pd-main p a:hover, .pd-main td a:hover, .pd-main dd a:hover { color: var(--brand-black); border-bottom-color: var(--brand-black); }

/* ---------- Facts panel ---------- */
.pd-facts { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.pd-facts__head { background: var(--pd-ink); color: #fff; font-weight: 700; padding: 0.85rem 1.1rem; font-size: 0.95rem; }
.pd-facts__head i { color: var(--brand-blue); }
.pd-facts__list { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.pd-facts__list dt { padding: 0.7rem 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #64748b; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.pd-facts__list dd { padding: 0.7rem 1rem; margin: 0; font-size: 0.9rem; color: var(--text-main); border-bottom: 1px solid #f1f5f9; }
.pd-facts__list dt:last-of-type, .pd-facts__list dd:last-of-type { border-bottom: 0; }

/* ---------- Figures / SVG ---------- */
.pd-figure { margin: 0; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); }
.pd-svg { width: 100%; height: auto; display: block; }

/* ---------- Specification grid ---------- */
.pd-spec { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); overflow: hidden; background: #fff; }
.pd-spec__cell { padding: 1rem 1.25rem; border-bottom: 1px solid var(--pd-line); display: flex; flex-direction: column; gap: 0.35rem; transition: background 0.2s; }
.pd-spec__cell:hover { background: #f8fafc; }
.pd-spec__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-dark-blue); display: flex; align-items: center; gap: 0.5rem; }
.pd-spec__k i { width: 22px; height: 22px; border-radius: 6px; background: rgba(108, 168, 209, 0.14); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.pd-spec__v { font-size: 0.9rem; color: var(--text-main); line-height: 1.6; }
@media (min-width: 768px) {
    .pd-spec__cell:nth-child(odd) { border-right: 1px solid var(--pd-line); }
    .pd-spec__cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Type cards ---------- */
.pd-type {
    height: 100%; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1.5rem;
    position: relative; overflow: hidden; transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pd-type::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-blue); transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s; }
.pd-type:hover { transform: translateY(-5px); border-color: var(--brand-blue); box-shadow: 0 15px 35px rgba(108, 168, 209, 0.18); }
.pd-type:hover::before { transform: scaleY(1); }
.pd-type__icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(108, 168, 209, 0.14); color: var(--brand-dark-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 0.85rem; }
.pd-type h3 { margin-bottom: 0.35rem; }
.pd-type h3 a { text-decoration: none; }
.pd-type h3 a:hover { color: var(--brand-dark-blue) !important; }
.pd-type__std { display: block; font-size: 0.76rem; font-weight: 700; color: var(--brand-dark-blue); letter-spacing: 0.3px; margin-bottom: 0.6rem; font-family: ui-monospace, Consolas, monospace; }
.pd-type p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.65; }

/* ---------- Callout ---------- */
.pd-callout { background: #f8fafc; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1.5rem; }

/* ---------- Tables ---------- */
.pd-table-wrap { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: #fff; }
.pd-table-wrap--tall { max-height: 560px; overflow: auto; }
.pd-table-wrap--tall thead th { position: sticky; top: 0; z-index: 2; }
.pd-table { font-size: 0.86rem; margin: 0; }
.pd-table thead th { background: var(--pd-ink); color: #fff; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.3px; vertical-align: bottom; white-space: nowrap; border-color: #334155; }
.pd-table thead th small { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.pd-table tbody th { font-weight: 700; color: var(--pd-ink); white-space: nowrap; background: #f8fafc; }
.pd-table tbody td { color: var(--text-main); }
.pd-table tbody tr:hover td, .pd-table tbody tr:hover th { background: rgba(108, 168, 209, 0.08); }
.pd-table--compact th, .pd-table--compact td { padding: 0.4rem 0.6rem; }
.pd-diff { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Thread-length rule cards ---------- */
.pd-rule { background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; height: 100%; transition: all 0.3s; }
.pd-rule:hover { border-color: var(--brand-blue); box-shadow: 0 10px 25px rgba(108, 168, 209, 0.15); }
.pd-rule__range { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #64748b; }
.pd-rule__f { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; font-weight: 700; color: var(--brand-dark-blue); }
.pd-rule__eg { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Process timeline ---------- */
.pd-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; counter-reset: step; }
.pd-process__step { position: relative; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1.5rem 1.25rem 1.25rem; transition: all 0.3s; }
.pd-process__step:hover { transform: translateY(-4px); border-color: var(--brand-blue); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06); }
.pd-process__n { position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-black); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pd-process__ico { font-size: 1.4rem; color: var(--brand-blue); margin-bottom: 0.6rem; }
.pd-process__step h4 { margin-bottom: 0.4rem; }
.pd-process__step p { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ---------- Alert ---------- */
.pd-alert { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: var(--pd-radius); font-size: 0.9rem; line-height: 1.6; }
.pd-alert i { color: #ea580c; font-size: 1.2rem; margin-top: 2px; }

/* ---------- Calculator ---------- */
.pd-calc { background: #0f172a; border-radius: 14px; padding: 2rem; color: #fff; box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25); border: 1px solid #1e293b; position: relative; overflow: hidden; }
.pd-calc::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 168, 209, 0.25), transparent 70%); pointer-events: none; }
.pd-calc .calc-results-card { position: relative; z-index: 1; }

/* ---------- Application cards ---------- */
.pd-app { height: 100%; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1.4rem; transition: all 0.3s; }
.pd-app:hover { transform: translateY(-4px); border-color: var(--brand-blue); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06); }
.pd-app__ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(108, 168, 209, 0.14); color: var(--brand-dark-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.75rem; transition: all 0.3s; }
.pd-app:hover .pd-app__ico { background: var(--brand-blue); color: #fff; }
.pd-app p { font-size: 0.86rem; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ---------- Docs panel ---------- */
.pd-docs { background: #f8fafc; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 1.5rem; height: 100%; }
.pd-docs__list li { display: flex; gap: 0.6rem; font-size: 0.88rem; margin-bottom: 0.55rem; color: var(--text-main); }
.pd-docs__list i { color: var(--brand-blue); margin-top: 4px; }

/* ---------- Sidebar ---------- */
.pd-side__stick {
    position: sticky; top: calc(var(--nav-h) + var(--toc-h) + 16px);
    max-height: calc(100vh - var(--nav-h) - var(--toc-h) - 32px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 1rem; padding-right: 2px;
    scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.pd-side__stick > * { flex-shrink: 0; } /* boxes keep full height; the column scrolls instead of squashing them */
.pd-side__stick::-webkit-scrollbar { width: 6px; }
.pd-side__stick::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.pd-side__quote { background: var(--pd-ink); color: #fff; border-radius: var(--pd-radius); padding: 1.1rem 1.1rem 1.15rem; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25); }
.pd-side__kicker { display: block; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-blue); font-weight: 700; margin-bottom: 0.2rem; }
.pd-side__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.pd-side__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.pd-side__contact a {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.55rem 0.25rem; border-radius: 8px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85);
    text-decoration: none; font-size: 0.72rem; font-weight: 600; transition: all 0.2s;
}
.pd-side__contact a i { font-size: 1rem; color: var(--brand-blue); transition: color 0.2s; }
.pd-side__contact a:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; transform: translateY(-2px); }
.pd-side__contact a:hover i { color: #fff; }
.pd-side__quote .btn { padding: 10px 16px; }
.pd-side__box { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); }
.pd-side__head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem;
    background: #f8fafc; border-bottom: 1px solid var(--pd-line); cursor: pointer; list-style: none; font-weight: 700; font-size: 0.95rem; color: var(--pd-ink);
}
.pd-side__head::-webkit-details-marker { display: none; }
.pd-side__head small { display: block; font-size: 0.66rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--brand-dark-blue); font-weight: 700; }
.pd-side__head i { transition: transform 0.3s; color: #94a3b8; font-size: 0.8rem; }
details[open] > .pd-side__head i { transform: rotate(180deg); }
.pd-side__head--static { cursor: default; }
.pd-side__list { list-style: none; margin: 0; padding: 0.4rem 0; counter-reset: side; }
.pd-side__list li { counter-increment: side; }
.pd-side__list a {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1.1rem; font-size: 0.87rem; color: var(--text-main); text-decoration: none; transition: all 0.2s; border-left: 3px solid transparent;
}
.pd-side__list a::before { content: counter(side, decimal-leading-zero); font-family: ui-monospace, Consolas, monospace; font-size: 0.7rem; color: #94a3b8; min-width: 20px; }
.pd-side__list a:hover { background: #f1f5f9; color: var(--pd-ink); padding-left: 1.3rem; }
.pd-side__list li.is-current a { color: var(--brand-dark-blue); font-weight: 700; background: rgba(108, 168, 209, 0.1); border-left-color: var(--brand-blue); }
.pd-side__list li.is-current a::before { color: var(--brand-blue); }
.pd-side__all { display: block; padding: 0.7rem 1.1rem; font-size: 0.82rem; font-weight: 700; color: var(--brand-dark-blue); text-decoration: none; border-top: 1px solid var(--pd-line); background: #f8fafc; }
.pd-side__all:hover { color: var(--brand-black); }
.pd-side__mats .grade-chip { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-kpis li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 991.98px) {
    .pd-hero__visual { padding: 1rem 1rem 1.5rem; max-width: 420px; margin: 0 auto; }
    .pd-side__stick { position: static; max-height: none; overflow: visible; }
    .pd-layout { padding-top: 2rem; }
    .pd-sec__head { padding-right: 0; }
    .pd-sec__num { display: none; }
    .pd-toc__label { display: none; }
}
@media (max-width: 767.98px) {
    .pd-hero { padding: 1.75rem 0 1.5rem; }
    .pd-hero__title { font-size: 1.9rem !important; }
    .pd-kpis { margin-top: 1.75rem; }
    .pd-kpis li { padding: 0.9rem 0.9rem 0.3rem; }
    .pd-toc__cta { display: none; }
    .pd-toc__inner { padding-left: 0; padding-right: 0; }
    .pd-sec { padding-bottom: 2rem; }
    .pd-sec + .pd-sec { padding-top: 2rem; }
    .pd-calc { padding: 1.25rem; }
    .pd-facts__list { grid-template-columns: 1fr; }
    .pd-facts__list dt { border-bottom: 0; padding-bottom: 0.2rem; }
    .pd-spec__cell { padding: 0.9rem 1rem; }
    .pd-chip { font-size: 0.7rem; padding: 5px 10px; }
    .pd-table-wrap--tall { max-height: 420px; }
}

/* ---------- Sub-product pages: inline meter, animated flow lines, chart bars ---------- */
.pd-meter { display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: #e2e8f0; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.pd-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-blue)); border-radius: 4px; }
.pd-flow { stroke-dasharray: 8 6; animation: pdFlow 1.1s linear infinite; }
@keyframes pdFlow { to { stroke-dashoffset: -28; } }
.pd-bar { transform-box: fill-box; transform-origin: left center; animation: pdBarGrow 1.1s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
@keyframes pdBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .pd-flow, .pd-bar, .pd-chip { animation: none; }
}

/* Bootstrap floating labels have no width cap: a long label widens the page on phones */
.form-floating > label { max-width: 100%; }