@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Brand tokens ─────────────────────────────── */
:root {
    --she-red:   #e3000b;
    --she-black: #111111;
    --she-dark:  #0a0a0a;
    --she-gray:  #f5f5f5;
}

/* ── Base ─────────────────────────────────────── */
html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 { font-weight: 700; }

a { color: var(--she-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Bootstrap overrides ──────────────────────── */
.btn-primary, .btn-she {
    background-color: var(--she-red) !important;
    border-color: var(--she-red) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 2px;
    padding: .5rem 1.4rem;
}
.btn-primary:hover, .btn-she:hover {
    background-color: #c0000a !important;
    border-color: #c0000a !important;
}
.btn-outline-light {
    border-radius: 2px;
    font-weight: 600;
    padding: .5rem 1.4rem;
}
.btn:focus { box-shadow: 0 0 0 0.15rem rgba(227,0,11,.35); }

/* ── Navbar ───────────────────────────────────── */
.she-navbar {
    background: var(--she-black);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.she-navbar .navbar-brand img {
    height: 80px;
    width: auto;
}
.she-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: .92rem;
    padding: .45rem .9rem !important;
    transition: color .2s;
    white-space: nowrap;
}
.she-navbar .nav-link:hover,
.she-navbar .nav-link.active {
    color: var(--she-red) !important;
}
.she-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.4);
}
.she-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-links-box {
    border: 1px solid var(--she-red);
    display: flex;
    align-items: center;
}
.nav-links-box .navbar-nav {
    padding: 0;
    margin: 0 !important;
    align-items: stretch;
}
.nav-links-box .nav-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-cart-btn {
    font-size: 1.1rem;
    padding: .45rem .9rem !important;
    line-height: 1;
}
.collapse .nav-cart-btn {
    border-left: none;
    border-radius: 0;
    align-self: stretch;
    align-items: center;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: var(--she-black);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 5rem 0;
}
.hero-content .she-red { color: var(--she-red); }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
.hero-content p { font-size: 1.1rem; opacity: .9; max-width: 540px; }
.hero-sub { font-size: .85rem; opacity: .7; margin-top: 1rem; }

/* ── Page banner (inner pages) ────────────────── */
.page-banner {
    background-color: var(--she-black);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0 3rem;
    color: #fff;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
}
.page-banner-content {
    position: relative;
    z-index: 1;
}
.page-banner .she-red { color: var(--she-red); }
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-banner .label { font-size: .85rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }

/* ── Safety Health Environment page ──────────── */
.she-page-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.she-overlay-dark {
    background-color: rgba(10,10,10,.80);
    width: 100%;
}
.she-overlay-red {
    background-color: rgba(227,0,11,.70);
    width: 100%;
}
.text-white-75 { color: rgba(255,255,255,.85) !important; }
.text-white-75 li { margin-bottom: .3rem; }
.she-tile {
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.she-tile i { font-size: 1.8rem; color: #fff; }
.she-tile span { color: #fff; font-size: .8rem; margin-top: .6rem; line-height: 1.3; }

/* ── Section styles ───────────────────────────── */
.section { padding: 5rem 0; }
.section-dark {
    background: var(--she-black);
    color: #fff;
    padding: 5rem 0;
}
.section-red {
    background: var(--she-red);
    color: #fff;
    padding: 4rem 0;
}
.section-gray {
    background: var(--she-gray);
    padding: 5rem 0;
}
.eyebrow {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--she-red);
    font-weight: 600;
    margin-bottom: .4rem;
}
.section-dark .eyebrow { color: var(--she-red); }

/* ── Service cards ────────────────────────────── */
.service-block { padding: 4rem 0; border-bottom: 1px solid #eee; }
.service-block:last-child { border-bottom: none; }

/* ── Product cards ────────────────────────────── */
.product-card {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.product-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--she-black);
}

/* ── Service Divider Background ───────────────── */
.service-divider-bg {
    position: relative;
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.service-divider-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}
.service-divider-bg .container { position: relative; z-index: 1; }
@media (max-width: 767px) {
    .service-divider-bg { padding: 2.5rem 0; background-attachment: scroll; }
}

/* ── Reviews ──────────────────────────────────── */
.reviews-section {
    background-color: var(--she-black);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0;
    color: #fff;
}
.reviews-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}
.reviews-section .container { position: relative; z-index: 1; }
.review-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: 1.5rem;
    height: 100%;
}
.review-card .reviewer { font-weight: 700; margin-top: .75rem; font-size: .9rem; }
.review-card .company { font-size: .8rem; opacity: .6; }
.reviews-nav-btn {
    flex-shrink: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: 0 .25rem;
    opacity: .75;
    transition: opacity .2s;
}
.reviews-nav-btn:hover { opacity: 1; }

/* ── Footer ───────────────────────────────────── */
.she-footer {
    background: var(--she-dark);
    color: #fff;
    padding: 3rem 0 2rem;
}
.she-footer img.footer-logo { height: 183px; width: auto; }
.she-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.she-footer a { color: rgba(255,255,255,.7); font-size: .9rem; display: block; margin-bottom: .4rem; }
.she-footer a:hover { color: var(--she-red); text-decoration: none; }
.she-footer p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: .3rem; }
.she-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Contact form ─────────────────────────────── */
.contact-image {
    height: 100%;
    min-height: 780px;
    background-size: cover;
    background-position: center top;
    border-radius: 4px;
}
.form-control:focus {
    border-color: var(--she-red);
    box-shadow: 0 0 0 0.15rem rgba(227,0,11,.2);
}

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb { background: none; padding: 0; margin-bottom: 1.5rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.breadcrumb-item a { color: rgba(255,255,255,.6); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* ── Partnership banner ───────────────────────── */
.partnership-banner {
    background: #fff;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.partnership-banner h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; }

/* ── Cart badge ───────────────────────────────── */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: var(--she-red);
    font-size: .65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Product listing ──────────────────────────── */
.product-list-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--she-black);
}

/* ── Product detail ───────────────────────────── */
.product-detail-img {
    height: 360px;
    border-radius: 4px;
}
.product-detail-icon { font-size: 8rem; }
.product-detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--she-red);
}
.btn-add-to-cart {
    background: var(--she-black);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-weight: 600;
    padding: .75rem;
    transition: background .2s;
}
.btn-add-to-cart:hover { background: #333; color: #fff; }

/* ── Cart page ────────────────────────────────── */
.cart-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}
.qty-control { user-select: none; }
.qty-control .btn-link { color: var(--she-black) !important; text-decoration: none; }
.btn-checkout {
    background: var(--she-black);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-weight: 700;
    padding: .85rem;
    font-size: 1rem;
    transition: background .2s;
}
.btn-checkout:hover { background: #333; color: #fff; }

/* ── Blazor error ─────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ── Mobile (< 992px) ─────────────────────────── */
@media (max-width: 991.98px) {
    /* Navbar */
    .she-navbar { padding: .5rem 0; }
    .she-navbar .navbar-brand img { height: 50px; }
    .nav-links-box {
        border: none;
        border-top: 1px solid rgba(227,0,11,.3);
        margin-top: .5rem;
        padding-top: .25rem;
    }
    .she-navbar .nav-link { padding: .6rem 1rem !important; }

    /* Footer */
    .she-footer { padding: 2rem 0 1.5rem; }
    .she-footer img.footer-logo { height: 90px; }

    /* Hero */
    .hero { min-height: 260px; }
    .hero-content { padding: 2rem 0; }
    .hero-content p { font-size: .95rem; }

    /* Page banner */
    .page-banner { padding: 2rem 0 1.25rem; }

    /* Sections */
    .section,
    .section-dark,
    .section-gray { padding: 2.5rem 0; }
    .section-red { padding: 2rem 0; }
    .reviews-section { padding: 2.5rem 0; }
    .partnership-banner { padding: 2rem 0; }
    .service-block { padding: 1.5rem 0; }

    /* Product detail */
    .product-detail-img { height: 200px; }
    .product-detail-icon { font-size: 5rem; }
    .product-detail-price { font-size: 1.4rem; }

    /* Index page — extra side padding */
    .index-page .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
