/* GMY Bearings – SKF-inspired design system */
/* Primary blue: #004184 | White: #fff | Text Dark: #1a1a1a | Grey: #f5f5f5 */

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

address {
    font-style: normal;
}

/* ===================== TYPOGRAPHY ===================== */
h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

/* ===================== COLORS ===================== */
:root {
    --blue: #004184;
    --blue-dark: #002d5c;
    --blue-light: #e8f0f8;
    --orange: #e85d04;
    --text: #1a1a1a;
    --text-sec: #555;
    --border: #d9d9d9;
    --bg-grey: #f5f5f5;
    --white: #ffffff;
}

/* ===================== ANNOUNCE BAR ===================== */
.announce-bar {
    background: var(--blue-dark);
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    padding: 7px 16px;
    letter-spacing: 0.03em;
}

/* ===================== HEADER ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 32px;
    height: 68px;
    max-width: 1520px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.hamburger-btn:hover span {
    background: var(--blue);
}

.desktop-nav {
    display: flex;
    gap: 0;
    margin: 0 auto;
}

.nav-link {
    padding: 0 18px;
    height: 68px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.icon-btn:hover {
    color: var(--blue);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--blue);
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    background: var(--blue);
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-small:hover {
    background: var(--blue-dark);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ===================== GLOBAL SEARCH BAR ===================== */
.global-search-bar {
    background: var(--blue);
    padding: 16px 32px;
    display: none;
}

.global-search-bar.open {
    display: block;
}

.search-bar-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-bar-inner input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

/* ===================== MOBILE NAV ===================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    transform: translateX(-100%);
    transition: 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.mobile-nav ul {
    list-style: none;
    padding: 12px 0;
}

.mobile-nav li a {
    display: block;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bg-grey);
    transition: 0.2s;
}

.mobile-nav li a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.mobile-cta {
    background: var(--blue);
    color: #fff !important;
    margin: 16px 24px;
    text-align: center;
}

/* ===================== HERO ===================== */
.hero-section {
    background: linear-gradient(135deg, #002d5c 0%, #004184 55%, #005ebc 100%);
    color: #fff;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
}

.hero-content-wrap {
    max-width: 1520px;
    margin: 0 auto;
    padding: 6rem 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.hero-section h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animated CSS Bearing */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bearing-3d {
    width: 360px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bearing-outer {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #aabcd4, #e8f0f8 50%, #b8cce0);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5), inset -8px -8px 24px rgba(0, 0, 0, 0.3), inset 4px 4px 12px rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bearing-track {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotateBearing 6s linear infinite;
}

.ball {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #9ab2c8);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}

.b1 {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.b2 {
    top: 25%;
    right: 4px;
}

.b3 {
    bottom: 25%;
    right: 4px;
}

.b4 {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.b5 {
    bottom: 25%;
    left: 4px;
}

.b6 {
    top: 25%;
    left: 4px;
}

@keyframes rotateBearing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bearing-inner {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #c8d8e8, #7a98b8);
    box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.4), inset -2px -2px 8px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bearing-logo-text {
    color: rgba(0, 65, 132, 0.7);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
    background: var(--blue);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 2rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
}

.stat-badge {
    font-size: 2.5rem;
    font-weight: 800;
    margin-left: 2px;
}

.stat>span:first-of-type {
    font-size: 3rem;
    font-weight: 800;
}

.stat p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-top: 4px;
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 6rem 32px;
    max-width: 1520px;
    margin: 0 auto;
}

.alt-section {
    background: var(--bg-grey);
    max-width: none;
    padding: 6rem 0;
}

.alt-section>*:not(.features-grid) {
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.alt-section .features-grid {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text);
}

.section-sub {
    max-width: 680px;
    color: var(--text-sec);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===================== CATEGORY CARDS ===================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
}

.cat-card {
    background: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: 0.2s;
    position: relative;
}

.cat-card:hover {
    background: var(--blue-light);
}

.cat-icon {
    width: 64px;
    height: 64px;
}

.cat-icon svg {
    width: 100%;
    height: 100%;
}

.cat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.cat-card p {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.5;
    flex: 1;
}

.cat-arrow {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
    align-self: flex-start;
    transition: 0.2s;
}

.cat-card:hover .cat-arrow {
    transform: translateX(4px);
}

/* ===================== FEATURES / WHY GMY ===================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature {
    border-left: 4px solid var(--blue);
    padding-left: 1.5rem;
}

.feature-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================== INTERCHANGE SEARCH SECTION ===================== */
.interchanges-section {
    background: #fff;
    padding: 6rem 32px;
    max-width: none;
}

.interchanges-section .section-label,
.interchanges-section .section-title,
.interchanges-section .section-sub {
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
}

.search-hero-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.search-hero-bar {
    display: flex;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.search-hero-bar input {
    flex: 1;
    padding: 1.1rem 1.5rem;
    font-size: 1.05rem;
    border: 2px solid var(--border);
    border-right: none;
    outline: none;
    font-family: inherit;
}

.search-hero-bar input:focus {
    border-color: var(--blue);
}

.search-hero-bar .btn-primary {
    padding: 1.1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.home-search-results {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--border);
}

.home-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-grey);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.home-result-item:last-child {
    border-bottom: none;
}

.home-result-item:hover {
    background: var(--blue-light);
}

.hri-part {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue);
}

.hri-dims {
    font-size: 0.85rem;
    color: var(--text-sec);
    margin-top: 2px;
}

.hri-arrow {
    color: var(--blue);
    font-size: 1.1rem;
}

.brands-row {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-sec);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.brands-row strong {
    color: var(--blue);
    font-weight: 700;
}

/* ===================== INDUSTRIES ===================== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 3rem;
}

.industry-card {
    background: #fff;
    padding: 2rem 1.5rem;
    transition: 0.2s;
}

.industry-card:hover {
    background: var(--blue-light);
}

.ind-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.industry-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-sec);
    line-height: 1.5;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: 0;
}

.footer-top {
    max-width: 1520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 32px;
}

.footer-brand-col {}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-brand-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
    color: #aaa;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ccc;
    transition: 0.2s;
}

.footer-socials a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: #aaa;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

address p {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

address a {
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 32px;
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom a {
    color: #777;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .hero-content-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        max-width: 100%;
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .search-hero-bar {
        flex-direction: column;
        box-shadow: none;
    }

    .search-hero-bar input {
        border-right: 2px solid var(--border);
    }

    .hero-content-wrap {
        padding: 4rem 20px;
    }

    .section {
        padding: 4rem 20px;
    }
}