/* Page-specific styling for storefront Home Index */

.rm-hero {
    border-bottom: 1px solid var(--rm-border-color);
    padding-block: clamp(4rem, 8vh, 7rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* 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 right;
    filter: grayscale(1) opacity(0.35);
    mix-blend-mode: luminosity;
    z-index: 0;
}

/* Dark overlay 70% opacity for high contrast */
.rm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 17, 21, 0.7);
    z-index: 1;
}

.rm-hero > * {
    position: relative;
    z-index: 2;
}

.rm-hero .container {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-inline: auto !important;
    text-align: left;
}

.rm-hero h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.rm-hero .lead {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 620px;
    margin-left: 0;
    margin-right: 0;
}

/* 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;
}

/* Hero button container */
.rm-hero .d-flex {
    justify-content: flex-start;
}

/* 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.75rem 1.75rem;
    border-radius: 0;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.rm-hero .btn-primary {
    background-color: var(--rm-accent);
    border-color: var(--rm-accent);
    color: #0f1115;
}

.rm-hero .btn-primary:hover, .rm-hero .btn-primary:focus {
    background-color: var(--rm-accent-hover);
    border-color: var(--rm-accent-hover);
    color: #0f1115;
}

.rm-hero .btn-outline-secondary {
    color: var(--rm-text-primary);
    border-color: var(--rm-text-primary);
}

.rm-hero .btn-outline-secondary:hover, .rm-hero .btn-outline-secondary:focus {
    background-color: var(--rm-bg-subtle);
    border-color: var(--rm-text-primary);
    color: var(--rm-text-primary);
}

@media (max-width: 768px) {
    .rm-hero .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .rm-hero h1 {
        margin-bottom: 1rem;
    }
    
    .rm-hero .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .rm-hero .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .rm-hero .btn {
        width: 100%;
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .rm-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .rm-hero .lead {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .rm-hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
}

.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);
}
