/*
 * ============================================================
 * M.H College
 * File: 10-components.css
 * Purpose:
 * Reusable buttons, links, cards, badges and UI components
 * ============================================================
 */

/*
 * Buttons
 */

.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 800;
    letter-spacing: .01em;

    box-shadow: var(--shadow-soft);

    transition:
        transform .34s var(--ease-luxury),
        box-shadow .34s var(--ease-luxury),
        border-color .34s ease,
        background-color .34s ease,
        color .34s ease;
}

.button > * {
    position: relative;
    z-index: 2;
}

.button::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: -40%;
    bottom: -40%;
    left: -45%;

    width: 30%;

    transform: translateX(-220%) rotate(18deg);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .44),
        transparent
    );

    transition:
        transform .8s var(--ease-luxury);

    pointer-events: none;
}

.button:hover {
    transform: translateY(-3px) scale(1.012);
}

.button:hover::before {
    transform: translateX(620%) rotate(18deg);
}

.button:active {
    transform: translateY(0) scale(.985);

    transition-duration: .12s;
}

.button .icon {
    transition:
        transform .34s var(--ease-luxury);
}

.button:hover .icon {
    transform: translateX(-3px) scale(1.06);
}

.lang-he .button:hover .icon {
    transform: translateX(3px) scale(1.06);
}

/*
 * Gold button
 */

.button-gold {
    color: #171109;

    border-color: rgba(255, 235, 179, .58);

    background: linear-gradient(
        135deg,
        #f7e3aa 0%,
        var(--gold-light) 22%,
        var(--gold) 58%,
        #b87928 100%
    );

    box-shadow:
        0 12px 30px rgba(217, 173, 87, .22),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}

.button-gold:hover {
    border-color: rgba(255, 240, 198, .86);

    box-shadow:
        0 18px 46px rgba(217, 173, 87, .34),
        0 0 24px rgba(245, 220, 152, .14),
        inset 0 1px 0 rgba(255, 255, 255, .58);
}

/*
 * Outline button
 */

.button-outline {
    color: var(--text);

    border-color: rgba(237, 202, 125, .62);

    background: linear-gradient(
        90deg,
        var(--gold-light) 0%,
        var(--gold) 50%,
        rgba(8, 8, 8, .46) 50%,
        rgba(8, 8, 8, .46) 100%
    );

    background-size: 205% 100%;
    background-position: 100% center;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .28),
        inset 0 0 0 1px rgba(255, 255, 255, .015);

    transition:
        transform .34s var(--ease-luxury),
        box-shadow .34s var(--ease-luxury),
        border-color .34s ease,
        background-position .44s var(--ease-luxury),
        color .34s ease;
}

.button-outline:hover {
    color: #17120a;

    border-color: var(--gold-light);

    background-position: 0 center;

    box-shadow:
        0 16px 36px rgba(166, 109, 38, .25),
        0 0 18px rgba(245, 220, 152, .1);
}

/*
 * Dark button
 */

.button-dark {
    color: var(--gold-light);

    border-color: rgba(217, 173, 87, .42);

    background: linear-gradient(
        135deg,
        #17130d,
        #080808 72%
    );

    box-shadow:
        0 18px 46px rgba(0, 0, 0, .32),
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

.button-dark:hover {
    color: #fff3cf;

    border-color: rgba(245, 220, 152, .75);

    box-shadow:
        0 20px 52px rgba(0, 0, 0, .42),
        0 0 24px rgba(217, 173, 87, .16);
}

/*
 * Small button
 */

.button-sm {
    min-height: 42px;
    padding: 8px 17px;

    font-size: .88rem;
}

/*
 * Text links
 */

.text-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--gold-light);

    font-weight: 800;

    transition:
        color .28s ease,
        transform .28s var(--ease-luxury);
}

.text-link::after {
    content: "";

    position: absolute;

    inset-inline: 0;
    bottom: -4px;

    height: 1px;

    transform: scaleX(.28);
    transform-origin: right center;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-light),
        transparent
    );

    opacity: .72;

    transition:
        transform .34s var(--ease-luxury);
}

.lang-he .text-link::after {
    transform-origin: left center;
}

.text-link:hover {
    color: #fff3cf;

    transform: translateY(-1px);
}

.text-link:hover::after {
    transform: scaleX(1);
}

.text-link .icon {
    transition:
        transform .3s var(--ease-luxury);
}

.text-link:hover .icon {
    transform: translateX(-4px);
}

.lang-he .text-link:hover .icon {
    transform: translateX(4px);
}

/*
 * Shared icon box
 */

.icon-box {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    flex: 0 0 auto;

    color: var(--gold-light);

    border: 1px solid var(--line);
    border-radius: 50%;
}

/*
 * Centered action wrapper
 */

.center-action {
    display: flex;
    justify-content: center;

    margin-top: 30px;
}

/*
 * Course preview cards
 */

.course-card {
    position: relative;
    overflow: hidden;

    color: #17130d;
    background: var(--cream);

    border: 1px solid rgba(218, 173, 87, .27);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform .42s var(--ease-luxury),
        border-color .35s ease,
        box-shadow .42s var(--ease-luxury);
}

.course-card::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    background: radial-gradient(
        circle at 50% 0,
        rgba(255, 255, 255, .28),
        transparent 42%
    );

    opacity: 0;

    transition:
        opacity .35s ease;
}

.course-card:hover {
    transform: translateY(-7px);

    border-color: rgba(217, 173, 87, .62);

    box-shadow:
        0 30px 72px rgba(0, 0, 0, .42),
        0 0 26px rgba(217, 173, 87, .12);
}

.course-card:hover::after {
    opacity: 1;
}

/*
 * Course card image
 */

.course-image {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;
}

.course-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .72s var(--ease-luxury),
        filter .45s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.04);

    filter:
        brightness(1.045)
        saturate(1.04);
}

/*
 * Course number badge
 */

.course-number {
    position: absolute;

    top: 16px;
    inset-inline-end: 16px;

    z-index: 2;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 240, 199, .64);
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    font-weight: 900;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .42);

    transition:
        transform .4s var(--ease-luxury),
        box-shadow .4s ease;
}

.course-card:hover .course-number {
    transform:
        translateY(-2px)
        rotate(-4deg)
        scale(1.06);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, .3),
        0 0 20px rgba(217, 173, 87, .22);
}

/*
 * Course card body
 */

.course-body {
    padding: 24px;
}

.course-body h3 {
    margin: 0 0 8px;

    font-size: 1.35rem;
}

.course-body p {
    margin: 0 0 20px;

    color: #554b3c;
}

.course-body .text-link {
    color: #5c3f15;
}

/*
 * Technique cards
 */

.tech-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 28px 12px;

    text-align: center;

    border: 1px solid rgba(218, 173, 87, .4);
    border-radius: 18px;

    background: linear-gradient(
        180deg,
        rgba(218, 173, 87, .06),
        rgba(255, 255, 255, .01)
    );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .02);

    transition:
        transform .38s var(--ease-luxury),
        border-color .32s ease,
        background .32s ease,
        box-shadow .38s var(--ease-luxury);
}

.tech-card::before {
    content: "";

    position: absolute;
    z-index: -1;

    inset: -35%;

    transform: scale(.7);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(245, 220, 152, .18),
        transparent 58%
    );

    opacity: 0;

    transition:
        opacity .35s ease,
        transform .5s var(--ease-luxury);
}

.tech-card:hover {
    transform: translateY(-6px);

    border-color: rgba(245, 220, 152, .68);

    background: linear-gradient(
        180deg,
        rgba(217, 173, 87, .12),
        rgba(255, 255, 255, .018)
    );

    box-shadow:
        0 20px 42px rgba(0, 0, 0, .28),
        0 0 20px rgba(217, 173, 87, .09);
}

.tech-card:hover::before {
    opacity: 1;

    transform: scale(1);
}

.tech-card .icon {
    width: 48px;
    height: 48px;

    margin-bottom: 10px;

    color: var(--gold);

    filter:
        drop-shadow(0 0 0 rgba(217, 173, 87, 0));

    transition:
        transform .42s var(--ease-luxury),
        color .32s ease,
        filter .32s ease;
}

.tech-card:hover .icon {
    transform:
        translateY(-3px)
        scale(1.08);

    color: var(--gold-light);

    filter:
        drop-shadow(0 0 12px rgba(217, 173, 87, .22));
}

.tech-card h3 {
    margin: 0;

    font-size: 1rem;
}

/*
 * Why-us benefit items
 */

.why-item {
    min-height: 144px;

    padding: 20px 18px;

    border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px;

    transition:
        transform .34s var(--ease-luxury),
        border-color .3s ease,
        background .3s ease,
        box-shadow .34s ease;
}

.why-item:hover {
    transform: translateY(-4px);

    border-color: rgba(245, 220, 152, .55);

    background: linear-gradient(
        180deg,
        rgba(217, 173, 87, .075),
        rgba(255, 255, 255, .01)
    );

    box-shadow:
        0 16px 34px rgba(0, 0, 0, .2);
}

.why-item .icon {
    width: 36px;
    height: 36px;

    color: var(--gold);

    transition:
        transform .36s var(--ease-luxury),
        color .3s ease,
        filter .3s ease;
}

.why-item:hover .icon {
    transform:
        translateY(-2px)
        scale(1.08);

    color: var(--gold-light);

    filter:
        drop-shadow(0 0 10px rgba(217, 173, 87, .2));
}

.why-item h3 {
    margin: 10px 0 4px;

    font-size: 1.04rem;
}

.why-item p {
    margin: 0;

    color: var(--muted);

    font-size: .92rem;
    line-height: 1.72;
}

/*
 * Contact cards
 */

.contact-card {
    padding: 38px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: linear-gradient(
        180deg,
        rgba(218, 173, 87, .07),
        rgba(255, 255, 255, .015)
    );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .02);

    transition:
        transform .38s var(--ease-luxury),
        border-color .34s ease,
        box-shadow .38s var(--ease-luxury),
        background .34s ease;
}

.contact-card:hover {
    transform: translateY(-5px);

    border-color: rgba(245, 220, 152, .5);

    background: linear-gradient(
        180deg,
        rgba(217, 173, 87, .105),
        rgba(255, 255, 255, .018)
    );

    box-shadow:
        0 22px 48px rgba(0, 0, 0, .28),
        0 0 20px rgba(217, 173, 87, .08);
}

.contact-card h2 {
    margin: 10px 0;

    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.contact-card p {
    color: var(--muted);
}

/*
 * Left-to-right display for phone values
 */

.phone-number,
.contact-card:first-child h2 {
    display: inline-block;

    direction: ltr;
    unicode-bidi: isolate;
}