/* ========================================= */
/* CSS VARIABLES & COLOR PALETTE FROM LOGO   */
/* ========================================= */
:root {
    --primary-blue: #1c3c6a;    /* Derived from 'HERICO' text */
    --primary-copper: #b96c46;  /* Derived from the right side of 'H' logo */
    --primary-grey: #8a8d91;    /* Derived from 'INDIA PVT LTD' text */
    --bg-dark: #0a0a0a;         /* Deep background for contrast */
    --text-light: #f4f4f4;
    --text-dark: #222222;
}

/* ========================================= */
/* GLOBAL RESETS & BASE STYLES               */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Keep in-page anchor targets clear of the sticky header */
section[id],
footer[id] {
    scroll-margin-top: 72px;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden; /* Prevents horizontal scroll on animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}







/* ========================================= */
/* UTILITY CLASSES                           */
/* ========================================= */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* TOP BAR - UPGRADED                        */
/* ========================================= */
.top-bar {
    background: linear-gradient(90deg, #112543 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    font-size: 12px;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 25px;
}

.top-bar-right a, .top-bar-right span {
    color: #e0e0e0;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-right i {
    color: var(--primary-copper);
    font-size: 14px;
}

/* ========================================= */
/* MAIN HEADER (GLASSMORPHISM)               */
/* ========================================= */
/* The <header> wraps only the nav bar, so it can stick against the page */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    position: relative; /* Anchors the full-width mega menu */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    padding: 2px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Modern Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(28, 60, 106, 0.08); /* Tinted subtle shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertical only, so the .container side gutter keeps the logo off the screen edge */
    padding-top: 8px;
    padding-bottom: 8px;
    transition: padding 0.4s ease;
}

.main-header.scrolled .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo img {
    height: 70px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.05));
}

.main-header.scrolled .logo img {
    height: 48px;
}

/* ========================================= */
/* DESKTOP NAVIGATION - MODERN HOVER         */
/* ========================================= */
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar .nav-links > li > a {
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar .nav-links > li > a i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.navbar .nav-links > li:hover > a i {
    transform: rotate(180deg);
}

/* Center-out Animated Underline */
.navbar .nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-copper);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar .nav-links > li > a:hover::after,
.navbar .nav-links > li > a.active::after {
    width: 100%;
}

.navbar .nav-links > li > a:hover,
.navbar .nav-links > li > a.active {
    color: var(--primary-copper);
}

/* ========================================= */
/* DROPDOWN MENU - FLOATING CARD EFFECT      */
/* ========================================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: -20px;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(28, 60, 106, 0.1);
    border-radius: 12px; /* Soft modern corners */
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    top: 100%;
}

.dropdown-menu li {
    padding: 4px 15px;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(185, 108, 70, 0.08); /* Light copper tint */
    color: var(--primary-copper);
    transform: translateX(5px);
}

/* ========================================= */
/* BROCHURE BUTTON - GRADIENT PILL           */
/* ========================================= */
.btn-brochure {
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(185, 108, 70, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-brochure:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5592 100%);
    box-shadow: 0 8px 20px rgba(28, 60, 106, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

/* ========================================= */
/* HAMBURGER & MOBILE SIDEBAR                */
/* ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0;
}

.hamburger:focus-visible,
.close-btn:focus-visible,
.mobile-dropdown-toggle:focus-visible {
    outline: 2px solid var(--primary-copper);
    outline-offset: 3px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    /* visibility keeps the closed menu out of the keyboard tab order */
    visibility: hidden;
    transition: right 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    right: 0;
    visibility: visible;
    transition: right 0.4s ease, visibility 0s; /* Visible at once so focus can move into it */
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0s;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
}

.mobile-nav-links {
    margin-bottom: 20px;
}

.mobile-nav-links > li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-links a, .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--primary-blue);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

/* Dropdown toggles are <button>s: strip native button styling */
button.mobile-dropdown-toggle {
    width: 100%;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    text-align: left;
}

.mobile-nav-links a.active, .mobile-nav-links a:hover {
    color: var(--primary-copper);
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 15px;
    padding-bottom: 10px;
}

.mobile-dropdown-menu li a {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: none;
    padding: 8px 0;
}

.mobile-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-contact .sidebar-contact-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.sidebar-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-contact i {
    color: var(--primary-copper);
    margin-top: 3px;
}

/* ========================================= */
/* MEDIA QUERIES (RESPONSIVENESS)            */
/* ========================================= */
@media (max-width: 1024px) {
    .navbar .nav-links {
        gap: 15px;
    }
    .navbar .nav-links > li > a {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .top-bar {
        display: none; /* Hide top bar on mobile for cleaner look */
    }
    
    .navbar, .header-action {
        display: none; /* Hide desktop nav and button */
    }
    
    .hamburger {
        display: flex;
    }
}













/* ========================================= */
/* HERO SWIPER SECTION                       */
/* ========================================= */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh; /* Adjust if you want it full 100vh */
    min-height: 600px;
    background-color: var(--bg-dark);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

/* Slide Background Images (Add your .webp paths here) */
/* Slide 1 = Nickel Alloy | Slide 2 = Stainless Steel | Slide 3 = Ferrule Fittings | Slide 4 = MS / CS Seamless Pipes */
/* The file numbers do not match the slide numbers on purpose: each image was picked to
   match its slide (slider-3 = flanges, slider-2 = butt-weld fittings, slider-1 = CS pipe
   stock). If you change slide 1's image, update the preload link in index.html too.
   The ferrule slide uses the supplied ferrule photo; a dedicated 1920x1080 shot can replace
   it here (see IMAGES-REQUIRED.md, section 1). */
.slide-1 {
    background: url('images/slider-3.webp') center/cover no-repeat;
}
.slide-2 {
    background: url('images/slider-2.webp') center/cover no-repeat;
}
.slide-ferrule {
    background: url('images/slider-ferrule.webp') center/cover no-repeat;
}
.slide-3 {
    background: url('images/slider-1.webp') center/cover no-repeat;
}

/* The ferrule photo is light; deepen the overlay so the white text stays readable */
.slide-ferrule .slide-overlay {
    background: linear-gradient(90deg, rgba(10, 20, 36, 0.94) 0%, rgba(10, 20, 36, 0.72) 50%, rgba(10, 20, 36, 0.35) 100%);
}

/* Dark overlay to make text pop */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 20, 36, 0.9) 0%, rgba(10, 20, 36, 0.5) 50%, rgba(10, 20, 36, 0.2) 100%);
    z-index: 1;
}

/* Slide Content Layout */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px; /* Constrain text width */
    padding-bottom: 50px; /* Room for ticker */
}

/* Typography Overrides for Slider */
.slide-content .subtitle {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(185, 108, 70, 0.2);
    color: var(--primary-copper);
    border: 1px solid rgba(185, 108, 70, 0.4);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: max-content;
    max-width: 100%; /* Wrap instead of overflowing on narrow phones */
}

.slide-content .title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
}

.slide-content .highlight {
    color: var(--primary-copper);
}

.slide-content .description {
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- SWIPER NAVIGATION & PAGINATION STYLES --- */
.custom-nav-btn {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-nav-btn:hover {
    background: var(--primary-copper);
    border-color: var(--primary-copper);
    transform: scale(1.1);
}

.custom-nav-btn::after {
    font-size: 20px !important;
}

.custom-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.custom-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-copper);
    width: 25px;
    border-radius: 5px;
}

/* --- SLIDE CONTENT ANIMATIONS --- */
/* Hide elements initially */
.animate-subtitle, .animate-title, .animate-desc, .animate-btns {
    opacity: 0;
    transform: translateY(30px);
}

/* Trigger animation only when slide is active */
.swiper-slide-active .animate-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}
.swiper-slide-active .animate-title {
    animation: fadeUp 0.8s ease forwards 0.5s;
}
.swiper-slide-active .animate-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}
.swiper-slide-active .animate-btns {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Infinite Materials Ticker (Repositioned for Slider) --- */
.materials-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    overflow: hidden;
    z-index: 10;
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin: 0 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticker-content span i {
    color: var(--primary-copper);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-content .title {
        font-size: 2.5rem;
    }
    .custom-nav-btn {
        display: none !important; /* Hide arrows on mobile, keep swipe */
    }
}

/* Keep the longest badge ("Stainless Steel Flanges & Pipe Fittings") on one line on phones */
@media (max-width: 576px) {
    .slide-content .subtitle {
        font-size: 11px;
        letter-spacing: 0.5px;
        padding: 6px 12px;
    }
}

/* ========================================= */
/* BUTTON STYLES (Primary & Outline)         */
/* ========================================= */
.btn-primary, .btn-outline {
    padding: 14px 32px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary Button (Solid Copper) */
.btn-primary {
    background: var(--primary-copper);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(185, 108, 70, 0.4);
    border: 2px solid var(--primary-copper);
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

/* Outline Button (Transparent with White Border) */
.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--primary-copper);
    background: var(--primary-copper);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(185, 108, 70, 0.3);
}

/* Responsive adjustment for buttons */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
    }
}












/* ========================================= */
/* GLOBAL SECTION STYLES                     */
/* ========================================= */
.section-subtitle {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(185, 108, 70, 0.1);
    color: var(--primary-copper);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-subtitle i {
    margin-right: 5px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title span {
    color: var(--primary-copper);
}

/* ========================================= */
/* ABOUT US SECTION (PREMIUM REDESIGN)       */
/* ========================================= */
.about-premium {
    padding: 120px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The Giant Watermark Text */
.about-watermark {
    position: absolute;
    top: 50px;
    left: -2vw;
    font-size: 18vw;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(28, 61, 106, 0.112); /* Faint blue outline */
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.about-premium-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- Left: Image Collage --- */
.about-visuals {
    position: relative;
    height: 600px;
}

.img-large {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 85%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.img-large:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(28, 60, 106, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.img-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 50%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid #ffffff;
    z-index: 2;
}

.img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Diagonal Mesh Pattern over small image */
.mesh-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 10px);
    z-index: 3;
}

/* Interactive SVG Progress Ring */
.floating-stat {
    position: absolute;
    top: 15%;
    left: -5%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(28, 60, 106, 0.15);
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.progress-ring {
    position: absolute;
    top: 5px;
    left: 5px;
    transform: rotate(-90deg); /* Start circle from top */
}

/* Animate the dashed line rotating slowly */
.ring-progress {
    stroke-dasharray: 20 10;
    animation: spinRing 20s linear infinite;
}

@keyframes spinRing {
    from { transform: rotate(0deg); transform-origin: 60px 60px; }
    to { transform: rotate(360deg); transform-origin: 60px 60px; }
}

.stat-inner {
    text-align: center;
    z-index: 5;
}

.stat-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--primary-grey);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-top: 5px;
    display: block;
}

/* --- Right: Text & Bento Features --- */
.premium-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-copper);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.premium-subtitle .line {
    width: 40px;
    height: 2px;
    background-color: var(--primary-copper);
}

.premium-title {
    font-size: 3rem;
    color: var(--primary-blue);
    line-height: 1.15;
    margin-bottom: 25px;
}

.premium-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.premium-desc {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Mini-Bento Layout */
.about-mini-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.bento-feature {
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    padding: 25px 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.bento-feature::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary-copper);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.bento-feature:hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.bento-feature:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* About-section feature icon (separate from the Why-Us .bento-icon) */
.about-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(28, 60, 106, 0.05);
    color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bento-feature:hover .about-feature-icon {
    background: var(--primary-blue);
    color: #ffffff;
}

.bento-feature h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bento-feature p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Call to Action Row */
.about-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.call-action {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.call-action:hover {
    transform: scale(1.05);
}

.call-icon {
    width: 50px;
    height: 50px;
    background: rgba(185, 108, 70, 0.1);
    color: var(--primary-copper);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.call-text {
    display: flex;
    flex-direction: column;
}

.call-text span {
    font-size: 0.85rem;
    color: #888888;
}

.call-text strong {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
}

/* ========================================= */
/* RESPONSIVE DESIGN (PREMIUM ABOUT)         */
/* ========================================= */
@media (max-width: 991px) {
    .about-premium-container {
        grid-template-columns: 1fr;
    }
    .about-watermark {
        font-size: 25vw;
        top: 20px;
    }
    .about-visuals {
        max-width: 600px;
        margin: 0 auto;
        height: 500px;
    }
}

@media (max-width: 576px) {
    .premium-title {
        font-size: 2.2rem;
    }
    .about-mini-bento {
        grid-template-columns: 1fr;
    }
    .about-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .about-visuals {
        height: 400px;
    }
    .floating-stat {
        width: 100px;
        height: 100px;
        top: -10px;
        left: -10px;
    }
    .progress-ring {
        display: none; /* Hide SVG on very small screens to prevent clipping */
    }
}

/* ========================================= */
/* COUNTER SECTION (PREMIUM REDESIGN)        */
/* ========================================= */
.counter-premium-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Parallax Background */
.counter-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates the parallax scroll effect */
    z-index: 1;
}

/* Dark Frosted Overlay */
.counter-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 20, 36, 0.95) 0%, rgba(28, 60, 106, 0.85) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.relative-container {
    position: relative;
    z-index: 3;
}

.counter-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Glassmorphism Cards */
.counter-premium-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.counter-premium-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(185, 108, 70, 0.5); /* Soft copper border on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Glowing Icon Wrapper */
.counter-icon-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(185, 108, 70, 0.15) 0%, transparent 100%);
    border: 1px solid rgba(185, 108, 70, 0.4);
    color: var(--primary-copper);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.counter-premium-card:hover .counter-icon-wrapper {
    background: var(--primary-copper);
    color: #ffffff;
    border-color: var(--primary-copper);
    box-shadow: 0 10px 20px rgba(185, 108, 70, 0.4);
    transform: scale(1.1) rotateY(180deg);
}

/* Typography */
.number-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.counter-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.counter-plus {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-copper);
    line-height: 1;
    margin-left: 2px;
}

.counter-label {
    color: #a0aec0;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================= */
/* RESPONSIVE QUERIES                        */
/* ========================================= */
@media (max-width: 991px) {
    .counter-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .counter-bg {
        background-attachment: scroll; /* Disable parallax on tablets/mobile for better performance */
    }
}

@media (max-width: 576px) {
    .counter-premium-grid {
        grid-template-columns: 1fr;
    }
    .counter-premium-card {
        padding: 30px 20px;
    }
    .counter-number {
        font-size: 2.8rem;
    }
}















/* ========================================= */
/* SHARED SECTION HEADER HELPERS             */
/* ========================================= */
.text-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-desc {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}













/* ========================================= */
/* WHY CHOOSE US SECTION (BENTO GRID)        */
/* ========================================= */
.why-choose-us {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    /* Contain the AOS fade-left/right start offsets so they never widen the page on phones */
    overflow-x: hidden;
    overflow-x: clip;
}

/* CSS Grid Magic */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

/* The Box Base styling */
.bento-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: var(--primary-blue); /* Fallback */
    cursor: default;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Mouse Spotlight Pseudo-element (Controlled by JS) */
.bento-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* So it doesn't block text selection */
    z-index: 1;
}

.bento-box:hover::before {
    opacity: 1;
}

/* Sizing the grid items */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0; /* Remove padding to let image fill */
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
    justify-content: space-between;
}

/* Box Backgrounds & Colors */
.bg-blue {
    background: linear-gradient(135deg, #162b4d 0%, var(--primary-blue) 100%);
    color: #ffffff;
}

.bg-copper {
    background: linear-gradient(135deg, #a35d39 0%, var(--primary-copper) 100%);
    color: #ffffff;
}

.bg-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #ffffff;
}

/* Content Styling inside the boxes */
.bento-large img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.7s ease;
}

.bento-large:hover img {
    transform: scale(1.05);
}

.bento-large .bento-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(10, 20, 36, 0.95) 0%, rgba(10, 20, 36, 0.6) 60%, transparent 100%);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.glass-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bento-large .bento-content h3 {
    font-size: 2.2rem;
    color: var(--primary-copper);
}

.bento-content p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
}

.bento-large .bento-content p {
    font-size: 1.1rem;
    max-width: 90%;
}

.bento-icon, .bento-icon-large {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.bento-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.bento-icon-large {
    width: 80px;
    height: 80px;
    font-size: 35px;
    color: var(--primary-copper);
    flex-shrink: 0;
}

/* ========================================= */
/* RESPONSIVE DESIGN FOR BENTO               */
/* ========================================= */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 400px;
    }
    .bento-small {
        grid-column: span 1;
        min-height: 250px;
    }
    .bento-medium {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-small, .bento-medium {
        grid-column: span 1;
    }
    .bento-medium {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .bento-large .bento-content h3 {
        font-size: 1.8rem;
    }
}

















/* ========================================= */
/* INDUSTRIES WE SERVE SECTION               */
/* ========================================= */
.industries-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #050a12 0%, var(--primary-blue) 100%);
    position: relative;
    overflow: hidden;
}

/* Helper classes for dark background */
.text-white { color: #ffffff !important; }
.text-light { color: #b0bec5 !important; }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Individual Card */
.industry-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Background Image Layer */
.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Dark Tint Overlay */
.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 20, 36, 0.95) 0%, rgba(10, 20, 36, 0.5) 50%, rgba(10, 20, 36, 0.3) 100%);
    transition: background 0.4s ease;
    z-index: 2;
}

/* Content Container */
.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.industry-icon {
    width: 50px;
    height: 50px;
    background: rgba(185, 108, 70, 0.2);
    border: 1px solid var(--primary-copper);
    color: var(--primary-copper);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.industry-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.industry-content p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 0;
}

/* ========================================= */
/* HOVER EFFECTS                             */
/* ========================================= */
@media (min-width: 992px) {
    .industry-card:hover .industry-bg {
        transform: scale(1.1); /* Zoom image */
    }

    .industry-card:hover .industry-overlay {
        background: linear-gradient(0deg, rgba(10, 20, 36, 0.98) 0%, rgba(185, 108, 70, 0.4) 100%);
    }

    .industry-card:hover .industry-icon {
        background: var(--primary-copper);
        color: #ffffff;
        transform: translateY(-5px);
    }

    .industry-card:hover .industry-content h3 {
        transform: translateY(-5px);
        color: var(--primary-copper);
    }

    .industry-card:hover .industry-content p {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px; /* Reveal text */
    }
}

/* ========================================= */
/* RESPONSIVE DESIGN                         */
/* ========================================= */
@media (max-width: 991px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* On mobile/tablet, show the text permanently */
    .industry-content p {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
    .industry-overlay {
        background: linear-gradient(0deg, rgba(10, 20, 36, 0.95) 0%, rgba(10, 20, 36, 0.6) 100%);
    }
}

@media (max-width: 576px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .industry-card {
        height: 280px;
    }
}
















/* ========================================= */
/* FOOTER SECTION (LIGHT THEME)              */
/* ========================================= */
.footer-section {
    background-color: #ffffff; 
    color: #555555;
    padding-top: 80px;
    border-top: 5px solid var(--primary-copper);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03); /* Soft shadow to separate from above section */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

/* Column 1: About */
.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-right: 20px;
    color: #666666;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #f4f6f9; /* Light grey/blue background */
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-btn:hover {
    background: var(--primary-copper);
    border-color: var(--primary-copper);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(185, 108, 70, 0.3);
}

/* Headings */
.footer-heading {
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-copper);
    border-radius: 2px;
}

/* Links (Cols 2 & 3) */
.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #555555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-links li a i {
    font-size: 10px;
    margin-right: 10px;
    color: var(--primary-copper);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-copper);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Contact Details (Col 4) */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact li i {
    color: var(--primary-copper);
    font-size: 18px;
    margin-top: 4px;
}

.footer-contact li div {
    display: flex;
    flex-direction: column;
}

.footer-contact li strong {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.footer-contact li span,
.footer-contact li a {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: var(--primary-copper);
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    background-color: #f8f9fa; /* Very light grey for contrast */
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777777;
}

.mesotek-link {
    color: var(--primary-copper);
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.mesotek-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.mesotek-link:hover {
    color: var(--primary-blue);
}

.mesotek-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================= */
/* RESPONSIVE DESIGN (FOOTER)                */
/* ========================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 25px auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}




/* ========================================= */
/* MEGA MENU (PRODUCTS)                      */
/* ========================================= */
/* position:static lets the mega panel resolve against .main-header (full width) */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 150%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(28, 60, 106, 0.18);
    border: 1px solid rgba(28, 60, 106, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 120;
    /* Scroll inside the panel on short viewports instead of running off screen */
    max-height: calc(100vh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
}

.mega-dropdown:hover .mega-menu,
.mega-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.mega-col {
    padding: 28px 30px 24px;
    border-right: 1px solid #eef1f5;
    display: flex;
    flex-direction: column;
}

.mega-col:last-child {
    border-right: none;
}

/* Column Heading */
.mega-col-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(185, 108, 70, 0.25);
}

.mega-col-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5592 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
}

.mega-col-head strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mega-col-head small {
    display: block;
    font-size: 12px;
    color: #7d8794;
    margin-top: 2px;
}

.mega-col-head:hover .mega-col-icon {
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    transform: rotate(-6deg);
}

.mega-col-head:hover strong {
    color: var(--primary-copper);
}

/* Sub Groups */
.mega-sub {
    margin-bottom: 18px;
}

.mega-sub .mega-sub-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-copper);
    margin-bottom: 10px;
}

.mega-sub ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.mega-sub li a {
    display: block;
    font-size: 13px;
    color: #4a5462;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.mega-sub li a:hover {
    background: rgba(185, 108, 70, 0.08);
    color: var(--primary-copper);
    transform: translateX(4px);
}

/* "View all" link */
.mega-all {
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mega-all i {
    font-size: 10px;
    color: var(--primary-copper);
    transition: transform 0.3s ease;
}

.mega-all:hover {
    color: var(--primary-copper);
}

.mega-all:hover i {
    transform: translateX(5px);
}

/* Mega Footer Strip */
.mega-footer {
    background: linear-gradient(90deg, #112543 0%, var(--primary-blue) 100%);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mega-footer span {
    font-size: 12.5px;
    color: #cbd5e1;
    letter-spacing: 0.4px;
}

.mega-footer span i {
    color: var(--primary-copper);
    margin-right: 8px;
}

.mega-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: var(--primary-copper);
    padding: 9px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mega-cta:hover {
    background: #ffffff;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Nested mobile dropdown (Products > Family > Grade) */
.mobile-dropdown-toggle.sub {
    font-size: 14px;
    color: var(--primary-copper);
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-menu .mobile-dropdown-menu {
    padding-left: 12px;
    border-left: 2px solid rgba(185, 108, 70, 0.25);
    margin-bottom: 6px;
}

@media (max-width: 1200px) {
    .mega-menu {
        max-width: calc(100% - 40px);
    }
    .mega-col {
        padding: 22px 20px 20px;
    }
}

/* Four columns on small desktops: tighten spacing so headings and grade names stay on one line */
@media (max-width: 1100px) {
    .mega-col {
        padding: 20px 14px 18px;
    }
    .mega-col-head {
        gap: 10px;
    }
    .mega-col-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .mega-col-head strong {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    .mega-sub li a {
        font-size: 12.5px;
        padding: 5px 6px;
    }
    .mega-all {
        font-size: 11px;
        letter-spacing: 0.4px;
        gap: 6px;
    }
}




/* ========================================= */
/* PRODUCT DIVISIONS SECTION                 */
/* ========================================= */
.divisions-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.division-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.06);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}

.division-card:hover {
    transform: translateY(-10px);
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 25px 55px rgba(28, 60, 106, 0.16);
}

/* Highlight the priority (Nickel Alloy) division */
.division-card.priority {
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 18px 45px rgba(185, 108, 70, 0.14);
}

/* Media */
.division-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--primary-blue);
}

.division-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.division-card:hover .division-media img {
    transform: scale(1.07);
}

.division-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 20, 36, 0.75) 0%, rgba(10, 20, 36, 0.05) 65%);
    pointer-events: none;
}

.division-flag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: var(--primary-copper);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 18px rgba(185, 108, 70, 0.35);
}

/* Body */
.division-body {
    padding: 30px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.division-index {
    position: absolute;
    top: -34px;
    right: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
    line-height: 1;
    pointer-events: none;
}

.division-title {
    font-size: 1.7rem;
    color: var(--primary-blue);
    line-height: 1.15;
    margin-bottom: 4px;
}

.division-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-copper);
    margin-bottom: 14px;
}

.division-brands {
    font-size: 0.85rem;
    color: #6b7480;
    letter-spacing: 0.4px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed #e2e8f0;
}

.division-points {
    margin-bottom: 22px;
}

.division-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #55606d;
    line-height: 1.55;
    margin-bottom: 11px;
}

.division-points li i {
    color: var(--primary-copper);
    font-size: 11px;
    margin-top: 5px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .division-card.priority {
        grid-column: span 2;
    }
    .division-card.priority .division-media {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .divisions-section {
        padding: 70px 0;
    }
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    .division-card.priority {
        grid-column: span 1;
    }
}




/* ========================================= */
/* TABS (SHARED: GRADES & SPECIFICATIONS)    */
/* ========================================= */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.tab-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 13px 26px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tab-btn i {
    color: var(--primary-copper);
    font-size: 13px;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-copper);
    color: var(--primary-copper);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    border-color: var(--primary-copper);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(185, 108, 70, 0.3);
}

.tab-btn.active i {
    color: #ffffff;
}

/* Dark variant for dark sections */
.tab-nav.dark .tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    color: #dbe4ee;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tab-nav.dark .tab-btn:hover {
    border-color: var(--primary-copper);
    color: #ffffff;
}

.tab-nav.dark .tab-btn.active {
    background: var(--primary-copper);
    border-color: var(--primary-copper);
    color: #ffffff;
}

/* Panels */
.tab-panel {
    display: none;
    animation: tabFade 0.45s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes tabFade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}




/* ========================================= */
/* MATERIAL GRADE EXPLORER                   */
/* ========================================= */
.grades-section {
    padding: 100px 0;
    background: #f6f8fb;
}

.grade-family {
    margin-bottom: 35px;
}

.grade-family:last-child {
    margin-bottom: 0;
}

.grade-family-title {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-copper);
    line-height: 1.3;
}

/* Horizontal scroll wrapper keeps tables from breaking the layout */
.table-scroll {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(28, 60, 106, 0.05);
}

.grade-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.grade-table thead th {
    background: linear-gradient(90deg, #112543 0%, var(--primary-blue) 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 20px;
    white-space: nowrap;
}

.grade-table tbody td {
    padding: 13px 20px;
    font-size: 0.92rem;
    color: #4a5462;
    border-bottom: 1px solid #eef1f5;
    white-space: nowrap;
}

.grade-table tbody tr:last-child td {
    border-bottom: none;
}

.grade-table tbody tr {
    transition: background 0.25s ease;
}

.grade-table tbody tr:hover {
    background: rgba(185, 108, 70, 0.05);
}

.grade-table tbody td:first-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-blue);
}

.grade-table tbody td a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-copper);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.grade-table tbody td a::after {
    content: ' \2192';
    opacity: 0;
    transition: opacity 0.25s ease;
}

.grade-table tbody td a:hover {
    color: var(--primary-blue);
}

.grade-table tbody td a:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .grades-section {
        padding: 70px 0;
    }
}




/* ========================================= */
/* TECHNICAL SPECIFICATIONS SECTION          */
/* ========================================= */
.specs-section {
    padding: 100px 0;
    background: linear-gradient(140deg, #050a12 0%, #10203a 55%, var(--primary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.specs-section .section-subtitle {
    background-color: rgba(185, 108, 70, 0.18);
}

.spec-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left: product type thumbnails */
.spec-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.spec-type-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 14px 18px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.spec-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(185, 108, 70, 0.55);
    transform: translateY(-6px);
}

.spec-type-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.spec-type-card h5 {
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.spec-type-card span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.4px;
    line-height: 1.5;
}

/* Right: data blocks */
.spec-data {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 32px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spec-block {
    margin-bottom: 26px;
}

.spec-block h4 {
    font-size: 0.85rem;
    color: var(--primary-copper);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-row span {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 14px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
}

.chip-row span:hover {
    background: rgba(185, 108, 70, 0.2);
    border-color: rgba(185, 108, 70, 0.5);
    color: #ffffff;
}

.chip-row.accent span {
    background: rgba(185, 108, 70, 0.16);
    border-color: rgba(185, 108, 70, 0.45);
    color: #f0d6c6;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.chip-row.outline span {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: #dbe4ee;
}

.spec-note {
    font-size: 0.8rem;
    color: #8fa0b3;
    margin-top: 10px;
    font-style: italic;
}

.spec-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-copper);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 26px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(185, 108, 70, 0.3);
    transition: all 0.35s ease;
}

.spec-cta:hover {
    background: #ffffff;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.spec-cta i {
    transition: transform 0.3s ease;
}

.spec-cta:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .spec-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .specs-section {
        padding: 70px 0;
    }
    .spec-types {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-data {
        padding: 26px 20px;
    }
}




/* ========================================= */
/* TESTING & DOCUMENTATION SECTION           */
/* ========================================= */
.testing-section {
    padding: 100px 0;
    background: #ffffff;
    /* Contain the AOS fade-left/right start offsets so they never widen the page on phones */
    overflow-x: hidden;
    overflow-x: clip;
}

.testing-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.testing-desc {
    font-size: 1.02rem;
    color: #55606d;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 640px;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.testing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6f8fb;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #43505f;
    transition: all 0.3s ease;
}

.testing-item i {
    color: var(--primary-copper);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.testing-item:hover {
    background: #ffffff;
    border-color: rgba(185, 108, 70, 0.45);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(28, 60, 106, 0.07);
}

.testing-footnote {
    font-size: 0.82rem;
    color: #8a949f;
    font-style: italic;
    margin-bottom: 28px;
}

.testing-actions .btn-primary.dark-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 12px 30px rgba(28, 60, 106, 0.25);
}

/* Right visual */
.testing-visual {
    position: relative;
}

.testing-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(28, 60, 106, 0.16);
    background: #eef2f7;
}

.testing-badge {
    position: absolute;
    bottom: 28px;
    left: -22px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 18px 40px rgba(28, 60, 106, 0.18);
    border-left: 4px solid var(--primary-copper);
}

.testing-badge i {
    font-size: 26px;
    color: var(--primary-copper);
}

.testing-badge strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.testing-badge span {
    font-size: 0.78rem;
    color: #7d8794;
}

@media (max-width: 991px) {
    .testing-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .testing-visual img {
        height: 380px;
    }
    .testing-badge {
        left: 20px;
    }
}

@media (max-width: 576px) {
    .testing-section {
        padding: 70px 0;
    }
    .testing-grid {
        grid-template-columns: 1fr;
    }
    .testing-visual img {
        height: 300px;
    }
    .testing-badge {
        left: 15px;
        bottom: 15px;
        padding: 14px 18px;
    }
}




/* ========================================= */
/* TECHNICAL RFQ SECTION                     */
/* ========================================= */
.rfq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #050a12 0%, var(--primary-blue) 100%);
    position: relative;
}

.rfq-section .section-subtitle {
    background-color: rgba(185, 108, 70, 0.18);
}

.rfq-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 30px;
    align-items: start;
}

/* Left contact rail */
.rfq-rail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 34px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rfq-rail h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.rfq-rail-desc {
    font-size: 0.9rem;
    color: #a9b7c6;
    line-height: 1.65;
    margin-bottom: 26px;
}

.rfq-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rfq-contact li:last-child {
    border-bottom: none;
}

.rfq-contact li i {
    color: var(--primary-copper);
    font-size: 17px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.rfq-contact li div {
    display: flex;
    flex-direction: column;
}

.rfq-contact li strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #7f8ea1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 3px;
}

.rfq-contact li a,
.rfq-contact li span {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.rfq-contact li a:hover {
    color: var(--primary-copper);
}

.rfq-rail-note {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    background: rgba(185, 108, 70, 0.12);
    border: 1px solid rgba(185, 108, 70, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
}

.rfq-rail-note i {
    color: var(--primary-copper);
    margin-top: 2px;
}

.rfq-rail-note span {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Right form */
.rfq-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.rfq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.rfq-row.single {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-blue);
    margin-bottom: 7px;
}

.form-field label span {
    color: var(--primary-copper);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c3c6a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 36px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-copper);
    box-shadow: 0 0 0 4px rgba(185, 108, 70, 0.12);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
    border-color: #d9534f;
    background: #fff6f6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a0aab5;
}

/* Actions */
.rfq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.rfq-submit {
    border: none;
    font-size: 13px;
}

.rfq-alt {
    color: var(--primary-blue);
    border-color: #d7dee7;
    background: #ffffff;
    font-size: 13px;
    padding: 14px 26px;
}

.rfq-alt:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(28, 60, 106, 0.25);
}

.rfq-form-note {
    margin-top: 18px;
    font-size: 0.82rem;
    color: #7d8794;
}

.rfq-form-note span {
    color: var(--primary-copper);
    font-weight: 700;
}

.rfq-form-note.error {
    color: #d9534f;
    font-weight: 600;
}

.rfq-form-note.success {
    color: #2e7d4f;
    font-weight: 600;
}

@media (max-width: 991px) {
    .rfq-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .rfq-section {
        padding: 70px 0;
    }
    .rfq-row {
        grid-template-columns: 1fr;
    }
    .rfq-form {
        padding: 26px 20px 24px;
    }
    .rfq-actions .btn-primary,
    .rfq-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}




/* ========================================= */
/* INNER PAGES - SHARED PARTS                */
/* Page banner, breadcrumb, CTA strip and    */
/* button variants for light backgrounds.    */
/* ========================================= */
.page-banner {
    position: relative;
    padding: 110px 0 90px;
    background: var(--bg-dark);
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 20, 36, 0.94) 0%, rgba(10, 20, 36, 0.78) 55%, rgba(10, 20, 36, 0.45) 100%);
    z-index: 2;
}

.page-banner-content {
    position: relative;
    z-index: 3;
}

.breadcrumb ol {
    list-style: none; /* the global reset only covers <ul> */
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b0bec5;
    margin-bottom: 22px;
}

.breadcrumb li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    color: var(--primary-copper);
    margin-right: 10px;
}

.breadcrumb a {
    color: #dbe4ee;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-copper);
}

.breadcrumb li[aria-current] {
    color: var(--primary-copper);
}

.page-banner h1 {
    font-size: 3.2rem;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.page-banner h1 span {
    color: var(--primary-copper);
}

.page-banner p {
    font-size: 1.1rem;
    color: #d1d9e2;
    line-height: 1.65;
    max-width: 680px;
}

/* Solid button on a white background: keep it visible on hover */
.btn-primary.dark-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 12px 30px rgba(28, 60, 106, 0.25);
}

/* Outline button on a white background */
.btn-outline.on-light {
    color: var(--primary-blue);
    border-color: #d7dee7;
}

.btn-outline.on-light:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(28, 60, 106, 0.25);
}

/* CTA strip */
.cta-strip {
    padding: 80px 0;
    background: linear-gradient(135deg, #050a12 0%, var(--primary-blue) 100%);
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-strip h2 {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.cta-strip h2 span {
    color: var(--primary-copper);
}

.cta-strip p {
    color: #b0bec5;
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 560px;
}

.cta-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 70px 0 60px;
    }
    .page-banner h1 {
        font-size: 2.2rem;
    }
    .cta-strip {
        padding: 70px 0;
    }
    .cta-strip h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .cta-strip-actions {
        width: 100%;
    }
    .cta-strip-actions .btn-primary,
    .cta-strip-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}




/* ========================================= */
/* ABOUT US PAGE                             */
/* ========================================= */
/* Company overview */
.about-intro {
    padding: 100px 0;
    background: #ffffff;
    overflow-x: hidden;
    overflow-x: clip;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-intro-content .section-title {
    font-size: 2.3rem;
}

.about-intro-content p {
    font-size: 1.02rem;
    color: #55606d;
    line-height: 1.75;
    margin-bottom: 18px;
}

.fact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 34px;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f6f8fb;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    background: #ffffff;
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 8px 20px rgba(28, 60, 106, 0.07);
}

.fact-item i {
    color: var(--primary-copper);
    font-size: 18px;
    width: 20px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.fact-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.fact-item span {
    font-size: 0.86rem;
    color: #55606d;
    line-height: 1.5;
}

/* What we supply */
.supply-section {
    padding: 100px 0;
    background: #f6f8fb;
}

.supply-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.supply-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    padding: 32px 26px;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.05);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}

.supply-card:hover {
    transform: translateY(-8px);
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 25px 55px rgba(28, 60, 106, 0.14);
}

.supply-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5592 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.supply-card:hover .supply-icon {
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    transform: rotate(-6deg);
}

.supply-card h3 {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.supply-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-copper);
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.supply-card p {
    font-size: 0.9rem;
    color: #55606d;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Mission, vision, values */
.values-section {
    padding: 100px 0;
    background: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.value-card {
    position: relative;
    border-radius: 20px;
    padding: 36px 30px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card .bento-icon {
    margin-bottom: 22px;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.65;
}

.value-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 9px;
}

.value-card ul li i {
    color: var(--primary-copper);
    font-size: 11px;
    margin-top: 5px;
    flex-shrink: 0;
}

.value-card.bg-copper p,
.value-card.bg-copper ul li {
    color: #f6e9e0;
}

.value-card.bg-copper ul li i {
    color: #ffffff;
}

/* How we work */
.process-section {
    padding: 100px 0;
    background: linear-gradient(140deg, #050a12 0%, #10203a 55%, var(--primary-blue) 100%);
}

.process-section .section-subtitle {
    background-color: rgba(185, 108, 70, 0.18);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.process-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(185, 108, 70, 0.55);
    transform: translateY(-6px);
}

.process-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(185, 108, 70, 0.85);
    margin-bottom: 16px;
}

.process-step h3 {
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.process-step p {
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.6;
}

/* Industries list */
.about-industries {
    padding: 90px 0;
    background: #f6f8fb;
}

.industry-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.industry-chip i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(185, 108, 70, 0.12);
    color: var(--primary-copper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.industry-chip:hover {
    border-color: rgba(185, 108, 70, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(28, 60, 106, 0.08);
    color: var(--primary-copper);
}

.industry-chip:hover i {
    background: var(--primary-copper);
    color: #ffffff;
}

/* Responsive (About page) */
@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .supply-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .industry-chips {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-intro,
    .supply-section,
    .values-section,
    .process-section {
        padding: 70px 0;
    }
    .about-industries {
        padding: 60px 0;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fact-list,
    .supply-grid,
    .process-grid,
    .industry-chips {
        grid-template-columns: 1fr;
    }
    .about-intro-content .section-title {
        font-size: 1.9rem;
    }
}




/* ========================================= */
/* PRODUCT PAGES (generated by tools/)       */
/* ========================================= */
.product-section {
    padding: 90px 0;
    background: #ffffff;
}

.product-section.bg-soft {
    background: #f6f8fb;
}

.block-title {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-title i {
    color: var(--primary-copper);
    font-size: 15px;
}

/* Hero: photo + intro */
.product-hero {
    overflow-x: hidden;
    overflow-x: clip;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

.product-figure {
    position: relative;
}

.product-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(28, 60, 106, 0.16);
    background: #eef2f7;
}

.product-intro .section-title {
    font-size: 2.2rem;
}

.product-intro p {
    font-size: 1rem;
    color: #55606d;
    line-height: 1.75;
    margin-bottom: 16px;
}

.product-intro .chip-row {
    margin: 6px 0 28px;
}

/* Chips on a light background */
.chip-row.light span {
    background: #f4f7fb;
    border-color: #dfe6ee;
    color: var(--primary-blue);
}

.chip-row.light span:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

/* Specification table (dl) */
.spec-block-card {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.05);
}

.spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.spec-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #eef1f5;
}

.spec-row dt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    padding-top: 2px;
}

.spec-row dd {
    font-size: 0.92rem;
    color: #4a5462;
    line-height: 1.55;
}

.spec-note-light {
    font-size: 0.85rem;
    color: #6b7480;
    line-height: 1.6;
    margin-top: 16px;
}

/* Dimensions */
.dims-section {
    background: #f6f8fb;
}

.dims-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dims-layout.single {
    grid-template-columns: 1fr;
}

.dims-layout > *,
.range-grid > *,
.materials-grid > * {
    min-width: 0; /* grid items with tables: let the column shrink, the table scrolls inside */
}

.wrap-table .dim-table {
    min-width: 0; /* wrapping tables fit the card instead of forcing a 620px scroll width */
}

.dims-layout.single .dim-svg {
    max-height: 380px;
}

.dim-figure {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 24px;
    margin: 0;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dim-figure figcaption {
    font-size: 0.84rem;
    color: #55606d;
    line-height: 1.55;
    margin-top: 14px;
    text-align: center;
}

.dim-svg {
    width: 100%;
    height: auto;
    max-height: 340px;
    font-family: 'Montserrat', sans-serif;
}

.svg-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.svg-body { fill: rgba(28, 60, 106, 0.08); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.svg-pipe { fill: rgba(185, 108, 70, 0.18); stroke: var(--primary-copper); stroke-width: 1.5; }
.svg-weld { fill: var(--primary-copper); stroke: var(--primary-copper); stroke-width: 1; }
.svg-tap { fill: #ffffff; stroke: var(--primary-copper); stroke-width: 1.5; }
.svg-axis { fill: none; stroke: #8a8d91; stroke-width: 1; stroke-dasharray: 8 4 2 4; }
.svg-dim { stroke: var(--primary-copper); stroke-width: 1.2; }
.svg-ext { stroke: #8a8d91; stroke-width: 0.8; }
.svg-thread { fill: none; stroke: var(--primary-copper); stroke-width: 1.2; stroke-dasharray: 3 2; }
.svg-hole { fill: #ffffff; stroke: currentColor; stroke-width: 1.5; }
.svg-rf { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 4 3; }
.svg-bore { fill: #ffffff; stroke: currentColor; stroke-width: 2; }
.svg-groove { fill: #ffffff; stroke: currentColor; stroke-width: 1.5; }
.svg-label { font-size: 15px; font-weight: 700; fill: var(--primary-copper); }
.svg-note { font-size: 10px; fill: #55606d; font-family: 'Open Sans', sans-serif; }

.dim-tables {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 28px 28px 22px;
}

.dim-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.dim-controls .tab-nav {
    justify-content: flex-start;
    margin-bottom: 0;
    gap: 10px;
}

.dim-controls .tab-btn {
    padding: 10px 20px;
    font-size: 12px;
}

.unit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f7fb;
    border: 1px solid #dfe6ee;
    border-radius: 50px;
    padding: 4px 6px 4px 14px;
}

.unit-toggle span {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #6b7480;
    margin-right: 4px;
}

.unit-toggle button {
    border: 0;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.unit-toggle button.active {
    background: var(--primary-copper);
    color: #ffffff;
}

.unit-toggle button:focus-visible {
    outline: 2px solid var(--primary-copper);
    outline-offset: 2px;
}

/* Tables: reuse .grade-table; add a sticky first column for phones */
.dim-table th small,
.material-table th small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    opacity: 0.8;
    margin-top: 2px;
}

.dim-table th sub {
    font-size: 9px;
}

.dim-table tbody th,
.material-table tbody th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-blue);
    text-align: left;
    padding: 13px 20px;
    border-bottom: 1px solid #eef1f5;
    white-space: nowrap;
}

.dim-table tbody tr:last-child th {
    border-bottom: none;
}

.dim-table thead th:first-child,
.dim-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
}

.dim-table thead th:first-child {
    background: #112543;
}

.dim-table tbody th {
    background: #ffffff;
    box-shadow: 2px 0 0 #eef1f5;
}

.dim-table tbody tr:hover th {
    background: #fbf5f1;
}

.dim-table td {
    text-align: center;
}

.dim-table th {
    text-align: center;
}

.dim-table thead th:first-child,
.dim-table th[scope="row"] {
    text-align: left;
}

.table-note {
    font-size: 0.82rem;
    color: #6b7480;
    line-height: 1.6;
    margin-top: 18px;
}

/* Materials */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.material-card {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 26px 26px 20px;
}

.material-card:last-child {
    grid-column: 1 / -1;
}

.material-card h3 {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.material-spec {
    font-size: 0.85rem;
    color: var(--primary-copper);
    font-weight: 600;
    margin-bottom: 16px;
}

.material-card {
    min-width: 0; /* let the grid item shrink on phones; the table scrolls inside .table-scroll */
}

.material-table {
    min-width: 0;
}

.material-table th,
.material-table td,
.material-table tbody td,
.material-table tbody th {
    white-space: normal; /* grade names and specs wrap instead of widening the card */
}

/* Standards */
.standards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.std-list li {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 0.9rem;
    line-height: 1.5;
}

.std-list li strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    color: var(--primary-blue);
}

.std-list li span {
    color: #4a5462;
}

.facing-block {
    background: #f6f8fb;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 30px 32px;
}

.facing-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.facing-tile {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    padding: 16px;
    margin: 0;
    color: var(--primary-blue);
    text-align: center;
}

.facing-tile svg {
    max-height: 120px;
}

.facing-tile figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 8px;
}

.facing-notes p {
    font-size: 0.92rem;
    color: #4a5462;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Applications */
.app-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #43505f;
    line-height: 1.55;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
}

.check-list li i {
    color: var(--primary-copper);
    font-size: 12px;
    margin-top: 5px;
    flex-shrink: 0;
}

.industry-chips.compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Related / type cards */
.related-grid,
.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card,
.type-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.05);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.related-card:hover,
.type-card:hover {
    transform: translateY(-8px);
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 25px 55px rgba(28, 60, 106, 0.14);
}

.related-card img,
.type-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef2f7;
}

.related-body,
.type-body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    flex: 1;
}

.related-body strong,
.type-body strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.related-body small,
.type-body small {
    font-size: 0.8rem;
    color: var(--primary-copper);
    font-weight: 600;
}

.type-desc {
    font-size: 0.9rem;
    color: #55606d;
    line-height: 1.6;
    margin: 12px 0 18px;
}

.type-body .mega-all {
    margin-top: auto;
}

.text-center-link {
    text-align: center;
    margin-top: 34px;
}

.range-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.range-grid .check-list li {
    font-size: 0.9rem;
    padding: 8px 0;
}

/* Single-page product with grade sections (seamless pipes) */
.grade-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 40px;
    padding: 18px 22px;
    background: #f6f8fb;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
}

.grade-nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b7480;
    margin-right: 6px;
}

.grade-chip {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 50px;
    padding: 8px 14px;
    transition: all 0.25s ease;
}

.grade-chip:hover {
    background: var(--primary-copper);
    border-color: var(--primary-copper);
    color: #ffffff;
    transform: translateY(-2px);
}

.range-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.grade-card {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 20px;
    padding: 34px 32px 30px;
    margin-top: 28px;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.05);
    scroll-margin-top: 90px;
}

.grade-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.grade-head h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 6px;
}

.grade-head h3 span {
    color: var(--primary-copper);
}

.grade-head .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
}

.grade-std {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: #6b7480;
}

.grade-summary {
    font-size: 1rem;
    color: #55606d;
    line-height: 1.75;
    margin-bottom: 24px;
}

.grade-tables {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 26px;
    margin-bottom: 20px;
}

.grade-tables > div {
    min-width: 0; /* let each grid column shrink; the table scrolls inside .table-scroll */
}

.grade-tables .block-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.grade-tables .material-table td,
.grade-tables .material-table th {
    padding: 10px 16px;
    font-size: 0.88rem;
}

.grade-notes {
    font-size: 0.9rem;
    color: #55606d;
    line-height: 1.7;
    background: #f6f8fb;
    border-left: 3px solid var(--primary-copper);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.grade-apps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.grade-apps-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-copper);
}

.compare-table tbody th a {
    color: var(--primary-blue);
    transition: color 0.25s ease;
}

.compare-table tbody th a:hover {
    color: var(--primary-copper);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.gallery-item {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #eef2f7;
}

.gallery-item figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 10px 8px;
}

@media (max-width: 1200px) {
    .range-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .grade-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grade-card {
        padding: 24px 18px;
    }
    .grade-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .grade-head h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .range-grid.four {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grade-nav {
        padding: 14px 16px;
    }
}

/* Information pages (technical info, quality policy) */
.std-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.std-list.two-col li {
    grid-template-columns: 200px 1fr;
}

.converter {
    display: grid;
    gap: 12px;
}

/* Tables whose cells should wrap (long descriptions) */
.wrap-table .dim-table tbody td,
.wrap-table .dim-table tbody th {
    white-space: normal;
    text-align: left;
}

.wrap-table .dim-table thead th {
    text-align: left;
}

.conv-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.conv-row label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: right;
}

.conv-row input {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
    min-width: 0;
}

.conv-row input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-copper);
    box-shadow: 0 0 0 4px rgba(185, 108, 70, 0.12);
}

.conv-eq {
    text-align: center;
    color: #8a8d91;
    font-weight: 700;
}

.dim-controls .block-title {
    margin-bottom: 0;
}

.policy-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.policy-layout .text-center {
    text-align: left;
    margin-bottom: 0;
}

.policy-layout .section-desc {
    margin: 0;
}

.policy-statement {
    margin: 0;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 1px solid #e6ebf1;
    border-left: 5px solid var(--primary-copper);
    border-radius: 18px;
    padding: 34px 36px;
}

.policy-statement p {
    font-size: 1.05rem;
    color: #43505f;
    line-height: 1.8;
    margin-bottom: 18px;
}

.policy-statement p strong {
    color: var(--primary-blue);
}

.policy-statement footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-copper);
}

.commit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.commit-grid .bento-feature {
    background: #ffffff;
}

.process-grid.six {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .policy-layout,
    .std-list.two-col {
        grid-template-columns: 1fr;
    }
    .commit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .std-list.two-col li {
        grid-template-columns: 1fr;
    }
    .process-grid.six {
        grid-template-columns: 1fr 1fr;
    }
    .policy-statement {
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .commit-grid,
    .process-grid.six {
        grid-template-columns: 1fr;
    }
    .conv-row {
        grid-template-columns: 36px minmax(0, 1fr) 18px 36px minmax(0, 1fr);
        gap: 6px;
    }
}

/* Contact page */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 30px 26px;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    min-width: 0;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 108, 70, 0.45);
    box-shadow: 0 25px 55px rgba(28, 60, 106, 0.12);
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(185, 108, 70, 0.12);
    color: var(--primary-copper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-copper);
    color: #ffffff;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.contact-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.55;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.contact-value a {
    color: var(--primary-blue);
    transition: color 0.25s ease;
}

.contact-value a:hover {
    color: var(--primary-copper);
}

.contact-note {
    font-size: 0.86rem;
    color: #6b7480;
    line-height: 1.55;
}

.rfq-section .section-desc a.text-link,
.rfq-rail .text-link {
    color: var(--primary-copper);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rfq-rail .check-list li {
    color: #dbe4ee;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.map-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: stretch;
}

.map-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6ebf1;
    box-shadow: 0 12px 35px rgba(28, 60, 106, 0.08);
    background: #eef2f7;
    min-height: 380px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.contact-address {
    font-style: normal;
    font-size: 0.98rem;
    color: #43505f;
    line-height: 1.7;
    margin-bottom: 18px;
}

.map-layout .about-actions {
    margin-top: 22px;
}

@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .map-wrap,
    .map-wrap iframe {
        min-height: 300px;
    }
}

/* Responsive (product pages) */
@media (max-width: 1100px) {
    .spec-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 1024px) {
    .related-grid,
    .type-grid,
    .range-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .facing-tiles {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .product-hero-grid,
    .dims-layout,
    .materials-grid,
    .standards-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
    .product-hero-grid {
        gap: 40px;
    }
    .material-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 65px 0;
    }
    .product-intro .section-title {
        font-size: 1.8rem;
    }
    .spec-block-card,
    .dim-tables,
    .facing-block {
        padding: 22px 18px;
    }
    .spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .std-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .svg-pair {
        grid-template-columns: 1fr;
    }
    .dim-controls .tab-nav {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .related-grid,
    .type-grid,
    .range-grid,
    .facing-tiles {
        grid-template-columns: 1fr;
    }
    .industry-chips.compact {
        grid-template-columns: 1fr;
    }
    .dim-controls .tab-btn {
        padding: 9px 14px;
        font-size: 11px;
    }
}




/* ========================================= */
/* STICKY MOBILE RFQ BAR                     */
/* ========================================= */
.sticky-rfq-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e6ebf1;
    box-shadow: 0 -6px 22px rgba(28, 60, 106, 0.12);
    padding: 8px 10px;
    gap: 8px;
}

.sticky-rfq-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: #f4f7fb;
    border-radius: 8px;
    padding: 12px 6px;
}

.sticky-rfq-bar a.primary {
    background: linear-gradient(135deg, var(--primary-copper) 0%, #d48057 100%);
    color: #ffffff;
}

@media (max-width: 768px) {
    .sticky-rfq-bar {
        display: flex;
    }
    body {
        padding-bottom: 66px;
    }
}