/* =====================================================
   VIMA BEARINGS - ULTRA-PREMIUM DESIGN SYSTEM V3
   ===================================================== */

/* SVG Icon helpers */
.card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    color: var(--primary);
}
.card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.feature-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    color: var(--primary);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Product Image Showcase (client renders on product pages) */
.product-showcase {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 50px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-showcase img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(2,2,2,0.92), transparent);
    padding: 40px 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.showcase-caption strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}
.showcase-caption span {
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 600px) {
    .product-showcase img { padding: 20px; }
    .table-header-row { flex-direction: column; align-items: flex-start; }
}

:root {
    --primary: #D31224;
    --primary-hover: #b00f1c;
    --primary-glow: rgba(211, 18, 36, 0.35);
    --bg-darker: #020202;
    --bg-dark: #080808;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(211, 18, 36, 0.3);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 90px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg-darker); color: var(--text-gray); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-light); text-transform: uppercase; font-weight: 900; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container { max-width: 1400px; margin: 0 auto; padding: 100px 60px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-light-color { color: var(--text-light) !important; }
.section-dark { background: var(--bg-dark); }
.section-darker { background: var(--bg-darker); }
.body-text { margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--text-gray); }
.body-text.large { font-size: 18px; color: var(--text-light); }
.product-list-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .product-list-grid { grid-template-columns: 1fr; } }
.section-label {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.section-title {
    font-size: 52px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.section-title.underline::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}
.section-title.underline.centered::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-desc {
    font-size: 19px;
    max-width: 800px;
    margin: 30px auto 60px;
    color: var(--text-gray);
    font-weight: 300;
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), #9a0a18);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 25px var(--primary-glow);
    transition: var(--transition);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255,255,255,0.12);
    transform: skewX(-20deg);
    transition: var(--transition);
    z-index: -1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px var(--primary-glow); color: #fff; }
.btn-primary:hover::before { left: 120%; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 38px;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(211,18,36,0.06); }

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 0 60px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(2,2,2,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.site-header.solid {
    background: rgba(2,2,2,0.97);
    border-bottom: 1px solid var(--border-subtle);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    text-shadow: 0 0 25px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo a img { height: 88px; width: auto; object-fit: contain; }

/* Desktop nav */
.main-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}
.main-nav > a, .main-nav > .dropdown > a {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}
.main-nav > a::after, .main-nav > .dropdown > a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.main-nav > a:hover, .main-nav > a.active { color: var(--primary); }
.main-nav > a:hover::after, .main-nav > a.active::after,
.main-nav > .dropdown:hover > a::after { width: 100%; }
.main-nav > .dropdown:hover > a { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    min-width: 220px;
    background: rgba(8,8,8,0.98);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--primary);
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 10000;
}
.dropdown-content a {
    display: block;
    padding: 13px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
.dropdown-content a::after { display: none !important; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { color: var(--primary); background: rgba(211,18,36,0.07); padding-left: 30px; }
.dropdown:hover .dropdown-content { display: block; animation: dropIn 0.25s ease; }

@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Catalog button */
.btn-nav {
    padding: 11px 22px !important;
    background: rgba(211,18,36,0.1) !important;
    border: 1px solid rgba(211,18,36,0.4) !important;
    color: var(--primary) !important;
    border-radius: 2px;
    letter-spacing: 1.5px !important;
    font-size: 11px !important;
    transition: var(--transition) !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(2,2,2,0.99);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 40px 30px;
    flex-direction: column;
    gap: 5px;
    z-index: 9998;
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav .m-dropdown-title {
    display: block;
    padding: 14px 0;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .m-sub a {
    padding: 10px 0 10px 20px;
    font-size: 11px;
    color: var(--text-gray);
    border-bottom: none;
}
.mobile-nav .m-sub a:hover { color: var(--primary); }

/* ---- HERO ---- */
.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-v2::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(2,2,2,0.92) 0%, rgba(2,2,2,0.5) 60%, rgba(2,2,2,0.2) 100%);
    z-index: 1;
}
.hero-v2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 250px;
    background: linear-gradient(to top, var(--bg-darker), transparent);
    z-index: 1;
}
.hero-v2.short { min-height: 65vh; }
.hero-v2.short::before { background: rgba(2,2,2,0.78); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.hero-content h1 {
    font-size: 80px;
    line-height: 1.05;
    margin-bottom: 28px;
    max-width: 950px;
}
.hero-content p {
    font-size: 22px;
    color: var(--text-gray);
    max-width: 680px;
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 70px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 45px;
    max-width: 900px;
}
.stat-box h4 { font-size: 44px; color: var(--primary); margin-bottom: 6px; }
.stat-box p { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-gray); margin: 0; }

/* Inner page hero - centered */
.hero-centered { text-align: center; justify-content: center; }
.hero-centered .hero-content { text-align: center; }
.hero-centered .hero-content h1 { max-width: 100%; margin: 0 auto 20px; }
.hero-centered .hero-content p { margin: 0 auto; }

/* ---- GRIDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-responsive-2col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }

/* ---- CARDS ---- */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.premium-card:hover { background: var(--bg-card-hover); transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,0.5); border-color: var(--border-accent); }
.premium-card:hover::before { transform: scaleX(1); }
.premium-card h3 { font-size: 28px; margin-bottom: 16px; }
.premium-card p { font-size: 17px; margin-bottom: 28px; flex-grow: 1; }
.card-link { font-weight: 700; letter-spacing: 2px; font-size: 12px; color: var(--primary); }

/* Feature cards (why choose us) */
.feature-card {
    padding: 40px 30px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-accent); background: var(--bg-card); }
.feature-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.feature-card h3 { font-size: 20px; margin-bottom: 14px; color: var(--text-light); }
.feature-card p { font-size: 15px; }

/* ---- TABLES ---- */
.table-wrapper {
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.table-wrapper.scrollable { max-height: 700px; overflow-y: auto; }
.premium-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.premium-table thead { position: sticky; top: 0; z-index: 5; }
.premium-table th {
    background: linear-gradient(90deg, rgba(211,18,36,0.2), rgba(211,18,36,0.08));
    color: var(--primary);
    padding: 22px 28px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 3px;
    border-bottom: 1px solid var(--border-accent);
}
.premium-table td {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-light);
    font-size: 16px;
    transition: background 0.2s;
}
.premium-table tr:last-child td { border-bottom: none; }
.premium-table tbody tr:hover td { background: rgba(211,18,36,0.04); }
.premium-table .part-no { color: var(--primary); font-weight: 700; font-family: var(--font-heading); font-size: 15px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-gray);
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }

/* ---- SECTION: Why Choose Us ---- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 60px; }

/* ---- CTA BANNER ---- */
.cta-banner {
    position: relative;
    padding: 120px 60px;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(2,2,2,0.8);
    z-index: 1;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { font-size: 50px; margin-bottom: 20px; }
.cta-banner p { font-size: 20px; max-width: 700px; margin: 0 auto 40px; color: var(--text-gray); }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---- FORMS ---- */
.premium-form { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 55px; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; font-family: var(--font-heading); font-size: 11px; letter-spacing: 2px; color: var(--text-gray); }
.form-control {
    width: 100%; padding: 18px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.form-control::placeholder { color: rgba(255,255,255,0.2); }
select.form-control option { background: #111; }

/* ---- FOOTER ---- */
.site-footer { background: #000; padding: 100px 60px 40px; border-top: 1px solid var(--border-subtle); }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 36px; font-weight: 900; color: var(--primary); letter-spacing: 3px; margin-bottom: 20px; display: block; }
.footer-desc { font-size: 15px; color: var(--text-gray); line-height: 1.8; max-width: 340px; }
.footer-col h4 { font-size: 13px; letter-spacing: 2px; color: var(--text-light); margin-bottom: 28px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-gray); margin-bottom: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); padding-left: 6px; }
.footer-contact p { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-gray); margin-bottom: 16px; line-height: 1.5; }
.footer-contact .icon { color: var(--primary); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.padded-card { border: 1px solid var(--border-subtle); padding: 40px; background: var(--bg-card); margin-bottom: 25px; }

/* ---- TRUSTED BRANDS TICKER ---- */
.brands-section { overflow: hidden; padding: 40px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.brands-ticker { display: flex; gap: 80px; animation: ticker 25s linear infinite; white-space: nowrap; }
.brands-ticker span { font-family: var(--font-heading); font-size: 22px; font-weight: 900; color: rgba(255,255,255,0.12); letter-spacing: 3px; text-transform: uppercase; flex-shrink: 0; transition: color 0.3s; }
.brands-ticker span:hover { color: rgba(255,255,255,0.4); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- SCROLL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.85s cubic-bezier(0.5,0,0,1), transform 0.85s cubic-bezier(0.5,0,0,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ---- PAGE TITLE BAR (for inner pages without big hero) ---- */
.page-title-bar {
    padding: 160px 60px 80px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-height: 70px; }
    .container { padding: 70px 30px; }
    .hero-v2 { padding: 100px 30px 60px; background-attachment: scroll; }
    .hero-content h1 { font-size: 52px; }
    .hero-content p { font-size: 18px; }
    .hero-stats { gap: 35px; }
    .hero-stats .stat-box h4 { font-size: 32px; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-responsive-2col { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 38px; }
    .cta-banner { padding: 80px 30px; background-attachment: scroll; }
    .cta-banner h2 { font-size: 36px; }

    .main-nav { display: none; }
    .hamburger { display: flex; }

    .site-header { padding: 0 30px; }
    .logo a { font-size: 28px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .padded-card { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }

    .premium-table td, .premium-table th { padding: 16px 18px; font-size: 14px; }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 38px; }
    .hero-stats { flex-direction: column; gap: 25px; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; gap: 10px; align-items: center; }
    .section-title { font-size: 30px; }
    .cta-banner h2 { font-size: 28px; }
    .premium-form { padding: 30px 20px; }
}
