/* Page-specific styling for storefront Home Index */

.rm-hero {
    border-bottom: 1px solid var(--rm-border-color);
    min-height: 600px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background image layer with grayscale and opacity */
.rm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/hero.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(1) opacity(0.4);
    mix-blend-mode: luminosity;
    z-index: 0;
}

/* Dark overlay 60% opacity */
.rm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 17, 21, 0.6);
    z-index: 1;
}

/* Radial gradient overlay */
.rm-hero {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 17, 21, 1) 100%);
}

.rm-hero > * {
    position: relative;
    z-index: 2;
}

.rm-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rm-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .rm-hero h1 {
        font-size: 5rem;
    }
}

@media (min-width: 1200px) {
    .rm-hero h1 {
        font-size: 7rem;
    }
}

.rm-hero .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Industrial top badge styling */
.rm-hero-badge {
    display: inline-block;
    background-color: var(--rm-accent);
    color: #0f1115;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: var(--rm-font-mono);
    border-radius: 0;
}

/* Enhanced button styling for hero section */
.rm-hero .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.rm-hero .btn-primary {
    background-color: var(--rm-accent);
    border-color: var(--rm-accent);
}

.rm-hero .btn-primary:hover, .rm-hero .btn-primary:focus {
    background-color: var(--rm-accent-hover);
    border-color: var(--rm-accent-hover);
}

.rm-hero .btn-outline-secondary:hover, .rm-hero .btn-outline-secondary:focus {
    background-color: var(--rm-bg-subtle);
    border-color: var(--rm-text-secondary);
}

.rm-section-title {
    font-family: var(--rm-font-mono);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--rm-accent);
}

.rm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--rm-border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    gap: 2rem;
}

.rm-section-description {
    font-size: 0.95rem;
    color: var(--rm-text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* View all link styling */
.rm-section-view-all {
    font-size: 0.85rem;
    color: var(--rm-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-family: var(--rm-font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: none;
}

.rm-section-view-all:hover {
    color: var(--rm-accent);
}

@media (min-width: 768px) {
    .rm-section-view-all {
        display: inline-block;
    }
}

.rm-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) opacity(0.8);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.rm-card:hover .rm-product-img {
    filter: grayscale(0) opacity(1);
}
