/* ── Offset when hero is hidden ── */
.public-site .flex-grow-1 > section:first-child:not(.hero-section) {
    padding-top: calc(2rem + 72px);
}

@media (min-width: 768px) {
    .public-site .flex-grow-1 > section:first-child:not(.hero-section) {
        padding-top: calc(2rem + 86px);
    }
}

/* ── Hero ── */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: #1a1d21 url("/images/banner.png") center / cover no-repeat;
    padding-top: 72px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 29, 33, 0.88) 0%, rgba(26, 29, 33, 0.55) 50%, rgba(234, 51, 35, 0.25) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.25rem 2.5rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #EA3323;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-search-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 900px;
}

.hero-search-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-search-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.35rem;
    display: block;
}

.hero-search-field .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.hero-search-field .form-control,
.hero-search-field .form-select {
    border-color: #dee2e6;
    height: 46px;
}

.hero-search-field .form-control:focus,
.hero-search-field .form-select:focus {
    border-color: #EA3323;
    box-shadow: 0 0 0 0.15rem rgba(234, 51, 35, 0.15);
}

.hero-search-submit .ralph-button {
    height: 46px;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 520px;
        align-items: center;
        padding-top: 86px;
    }

    .hero-inner {
        padding: 4rem 2rem;
    }

    .hero-search-row {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .hero-search-submit {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        min-height: 580px;
    }
}

/* ── Sections ── */
.featured-section {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stock-section {
    background: #f4f6f8;
    padding: 3rem 0 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #EA3323;
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a1d21;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.section-link {
    color: #1a1d21;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.section-link:hover {
    color: #EA3323;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Filters ── */
.filter-sidebar {
    display: block;
}

.filter-panel {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1a1d21;
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6c757d;
    margin-bottom: 0.6rem;
    display: block;
}

.filter-checks .form-check {
    margin-bottom: 0.4rem;
}

.filter-checks .form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

.form-check-input:checked {
    background-color: #EA3323;
    border-color: #EA3323;
}

.filter-toggle-btn {
    border-radius: 10px;
    font-weight: 600;
}

@media (min-width: 992px) {
    .filter-panel {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 991.98px) {
    .filter-sidebar {
        display: none;
    }

    .filter-sidebar.show {
        display: block;
    }
}

/* ── Empty / no results ── */
.empty-stock,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 14px;
}

.empty-stock i,
.no-results i {
    font-size: 2.5rem;
    color: #adb5bd;
    display: block;
    margin-bottom: 1rem;
}

.no-results {
    margin-top: 1rem;
}

.back-to-top-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.back-to-top-link:hover {
    color: #EA3323;
}

/* ── Contact CTA ── */
.contact-section {
    padding: 0 0 4rem;
    background: #f4f6f8;
}

.contact-card {
    background: linear-gradient(135deg, #1a1d21 0%, #2d3238 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(234, 51, 35, 0.15);
    border-radius: 50%;
}

.contact-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 0.5rem;
}

.contact-text {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Public footer enhancement ── */
.site-footer {
    background: #1a1d21;
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0 1.5rem;
}

.site-footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #EA3323;
}

.site-footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0 1rem;
}
