
/* ==========================================
   LUX MEDICAL CENTER
   EQUIPMENT SECTION
   Burgundy & Gold
   ========================================== */

.lux-equipment {
    --lux-burgundy: #721e40;
    --lux-burgundy-dark: #59152f;
    --lux-burgundy-light: #852049;
    --lux-gold: #d6a05e;
    --lux-gold-hover: #bc8543;
    --lux-text: #30313b;
    --lux-muted: #70737d;

    width: 100%;
    padding: 25px 0 60px;
    font-family: inherit;
    box-sizing: border-box;
}

.lux-equipment *,
.lux-equipment *::before,
.lux-equipment *::after,
.lux-equipment-modal *,
.lux-equipment-modal *::before,
.lux-equipment-modal *::after {
    box-sizing: border-box;
}

/* SECTION HEADING */

.lux-equipment__heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.lux-equipment__decoration {
    width: 55px;
    height: 3px;
    margin: 0 auto 24px;
    border-radius: 5px;
    background: #d6a05e;
}

.lux-equipment__heading h2 {
    margin: 0 0 17px;
    color: #721e40;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.lux-equipment__heading p {
    margin: 0;
    color: #70737d;
    font-size: 15px;
    line-height: 1.8;
}

/* CARD GRID */

.lux-equipment__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* CARD */

.lux-equipment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee8e9;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(65, 23, 43, .07);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.lux-equipment-card:hover {
    transform: translateY(-6px);
    border-color: #ead8cd;
    box-shadow: 0 18px 42px rgba(75, 24, 45, .15);
}

/* CARD IMAGE */

.lux-equipment-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f5f5;
}

.lux-equipment-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.lux-equipment-card:hover
.lux-equipment-card__image img {
    transform: scale(1.06);
}

/* BADGE */

.lux-equipment-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 6px;
    background: #721e40;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

.lux-equipment-card__badge:empty {
    display: none;
}

/* CARD CONTENT */

.lux-equipment-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 23px 23px;
}

.lux-equipment-card__subtitle {
    margin-bottom: 9px;
    color: #bb854d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.lux-equipment-card__title {
    margin: 0 0 14px;
    color: #721e40;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.lux-equipment-card__intro {
    margin: 0 0 25px;
    color: #70737d;
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* GOLD BUTTON */

.lux-equipment-card__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 13px 17px;
    border: 1px solid #d6a05e;
    border-radius: 7px;
    background: #d6a05e;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.lux-equipment-card__button span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform .25s ease;
}

.lux-equipment-card__button:hover {
    background: #721e40;
    border-color: #721e40;
    color: #fff;
    box-shadow: 0 5px 18px rgba(114, 30, 64, .2);
}

.lux-equipment-card__button:hover span {
    transform: translateX(4px);
}

.lux-equipment-card__button:focus-visible {
    outline: 3px solid #721e40;
    outline-offset: 3px;
}

/* ==========================================
   MODAL WINDOW
   ========================================== */

.lux-equipment-modal[hidden] {
    display: none !important;
}

.lux-equipment-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lux-equipment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 13, 25, .82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lux-equipment-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
    animation: luxModalAppear .3s ease-out;
}

.lux-equipment-modal__panel:focus {
    outline: none;
}

/* CLOSE BUTTON */

.lux-equipment-modal__close {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #721e40;
    color: #fff;
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transition:
        background .2s ease,
        transform .2s ease;
}

.lux-equipment-modal__close:hover {
    background: #d6a05e;
    color: #fff;
    transform: rotate(90deg);
}

.lux-equipment-modal__close:focus-visible {
    outline: 3px solid #d6a05e;
    outline-offset: 3px;
}

/* MODAL IMAGE */

.lux-equipment-detail__image {
    width: 100%;
    height: 340px;
    background: #f8f7f6;
    border-bottom: 3px solid #d6a05e;
}

.lux-equipment-detail__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* MODAL CONTENT */

.lux-equipment-detail__body {
    padding: 35px 42px 45px;
}

.lux-equipment-detail__subtitle {
    margin-bottom: 10px;
    color: #bb854d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lux-equipment-detail__title {
    margin: 0 0 25px;
    color: #721e40;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

/* SPECIFICATIONS */

.lux-equipment-detail__specs {
    margin-bottom: 25px;
    padding: 22px 25px;
    border-left: 4px solid #d6a05e;
    border-radius: 0 9px 9px 0;
    background: #faf6f2;
    color: #404047;
    font-size: 14px;
    line-height: 2;
    white-space: pre-line;
}

.lux-equipment-detail__specs:empty {
    display: none;
}

/* DESCRIPTION */

.lux-equipment-detail__description {
    color: #53535b;
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
}

.lux-equipment-detail__description:empty {
    display: none;
}

/* ANIMATION */

@keyframes luxModalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {
    .lux-equipment__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .lux-equipment {
        padding: 15px 0 40px;
    }

    .lux-equipment__heading {
        margin-bottom: 28px;
    }

    .lux-equipment__heading h2 {
        font-size: 24px;
    }

    .lux-equipment__heading p {
        font-size: 14px;
    }

    .lux-equipment__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .lux-equipment-card__body {
        padding: 22px;
    }

    .lux-equipment-card__title {
        font-size: 21px;
    }

    .lux-equipment-modal {
        padding: 10px;
    }

    .lux-equipment-modal__panel {
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 12px;
    }

    .lux-equipment-detail__image {
        height: 230px;
    }

    .lux-equipment-detail__body {
        padding: 27px 22px 35px;
    }

    .lux-equipment-detail__specs {
        padding: 17px;
    }

    .lux-equipment-modal__close {
        top: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lux-equipment *,
    .lux-equipment-modal * {
        animation: none !important;
        transition: none !important;
    }
}
