/* ==========================================================
   ABDELZAHER LEGAL
   HOME HERO V1
   Dark Titanium Academic Authority
   ========================================================== */

.az-hero {
    --hero-metal-light: #69737c;
    --hero-metal-mid: #30373d;
    --hero-metal-dark: #121619;
    --hero-gold: #dfc18f;

    position: relative;

    min-height: clamp(650px, 82vh, 880px);

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    color: #fff;

    background:
        radial-gradient(
            circle at 72% 32%,
            rgba(176,186,196,.16),
            transparent 27%
        ),
        radial-gradient(
            circle at 18% 72%,
            rgba(255,255,255,.055),
            transparent 30%
        ),
        linear-gradient(
            128deg,
            #252c32 0%,
            #171c20 42%,
            #0d1013 72%,
            #07090b 100%
        );
}


/* brushed-metal texture */

.az-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -3;

    pointer-events: none;

    opacity: .22;

    background:
        repeating-linear-gradient(
            102deg,
            rgba(255,255,255,.026) 0,
            rgba(255,255,255,.026) 1px,
            transparent 1px,
            transparent 7px
        );
}


/* architectural metallic geometry */

.az-hero::after {
    content: "";

    position: absolute;

    z-index: -2;

    top: -20%;
    left: 43%;

    width: 53%;
    height: 145%;

    border-left:
        1px solid rgba(255,255,255,.13);

    border-right:
        1px solid rgba(255,255,255,.055);

    transform:
        skewX(-10deg);

    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.012) 42%,
            rgba(0,0,0,.18)
        );

    box-shadow:
        inset 1px 0 0 rgba(255,255,255,.045),
        -35px 0 85px rgba(0,0,0,.18);
}


.az-hero-light {
    position: absolute;

    z-index: -1;

    width: 560px;
    height: 560px;

    border-radius: 50%;

    top: 48%;
    right: 67%;

    transform:
        translate(50%, -50%);

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(229,233,236,.10) 0%,
            rgba(153,164,174,.045) 30%,
            transparent 70%
        );

    filter:
        blur(4px);
}


.az-hero-inner {
    width: min(
        calc(100% - 64px),
        1400px
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, .95fr);

    align-items: center;

    gap: clamp(45px, 7vw, 110px);

    padding:
        82px 0 72px;
}


/* ==========================================================
   CONTENT
   ========================================================== */

.az-hero-content {
    position: relative;

    z-index: 3;
}


.az-hero-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

    color: #d8dde1;

    font-size: 15px;

    font-weight: 700;
}


.az-hero-eyebrow::before {
    content: "";

    width: 46px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d6dbe0
        );
}


.az-hero-title {
    margin: 0;

    color: #fff;

    font-size:
        clamp(42px, 4.8vw, 76px);

    line-height: 1.08;

    font-weight: 900;

    letter-spacing: -.025em;

    text-shadow:
        0 4px 20px rgba(0,0,0,.38);
}


.az-hero-title span {
    display: block;
}


.az-hero-role {
    margin-top: 23px;

    display: grid;

    gap: 5px;

    color: #e8ebed;

    font-size:
        clamp(16px, 1.45vw, 21px);

    font-weight: 700;

    line-height: 1.55;
}


.az-hero-role .az-hero-university {
    color: #bcc4ca;

    font-size: .84em;

    font-weight: 500;
}


.az-hero-role .az-hero-cassation {
    width: fit-content;

    margin-top: 4px;

    color: var(--hero-gold);

    font-weight: 800;
}


/* ==========================================================
   CTA BUTTONS
   ========================================================== */

.az-hero-actions {
    margin-top: 32px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


.az-hero-btn {
    position: relative;

    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 19px;

    border-radius: 6px;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 800;

    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.az-hero-btn-primary {
    color: #111518 !important;

    border:
        1px solid rgba(255,255,255,.8);

    background:
        linear-gradient(
            180deg,
            #f4f5f6 0%,
            #cbd0d4 14%,
            #949ca3 47%,
            #c2c8cd 70%,
            #eceeef 100%
        );

    text-shadow:
        0 1px 0 rgba(255,255,255,.72);

    box-shadow:
        inset 0 2px 1px rgba(255,255,255,.95),
        inset 0 -3px 3px rgba(33,38,43,.40),
        0 5px 0 #454c52,
        0 10px 20px rgba(0,0,0,.33);
}


.az-hero-btn-primary:hover {
    transform:
        translateY(-3px);

    filter:
        brightness(1.07);

    box-shadow:
        inset 0 2px 1px rgba(255,255,255,1),
        inset 0 -3px 3px rgba(33,38,43,.34),
        0 7px 0 #41484e,
        0 14px 26px rgba(0,0,0,.42);
}


.az-hero-btn-primary:active {
    transform:
        translateY(2px);

    box-shadow:
        inset 0 3px 5px rgba(0,0,0,.30),
        0 1px 0 #41484e,
        0 4px 8px rgba(0,0,0,.28);
}


.az-hero-btn-secondary {
    color: #f1f3f4 !important;

    border:
        1px solid rgba(255,255,255,.18);

    background:
        linear-gradient(
            180deg,
            rgba(95,105,114,.33),
            rgba(30,35,40,.66)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 7px 18px rgba(0,0,0,.22);
}


.az-hero-btn-secondary:hover {
    color: #fff !important;

    border-color:
        rgba(255,255,255,.34);

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            180deg,
            rgba(111,122,132,.42),
            rgba(36,42,47,.72)
        );
}


/* ==========================================================
   STATS
   ========================================================== */

.az-hero-stats {
    margin-top: 46px;

    display: flex;
    align-items: stretch;

    width: fit-content;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 8px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 12px 30px rgba(0,0,0,.16);
}


.az-hero-stat {
    min-width: 126px;

    padding:
        13px 18px;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.az-hero-stat + .az-hero-stat {
    border-right:
        1px solid rgba(255,255,255,.09);
}


.az-hero-stat strong {
    color: #fff;

    font-size: 17px;

    font-weight: 900;
}


.az-hero-stat span {
    color: #adb5bc;

    font-size: 10px;

    font-weight: 600;
}


/* ==========================================================
   PORTRAIT
   ========================================================== */

.az-hero-portrait-wrap {
    position: relative;

    z-index: 2;

    min-height: 580px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}


.az-hero-portrait-frame {
    position: relative;

    width:
        min(100%, 520px);

    height:
        580px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}


/* metallic architectural plate */

.az-hero-portrait-frame::before {
    content: "";

    position: absolute;

    z-index: -2;

    inset:
        70px 20px 20px;

    clip-path:
        polygon(
            12% 0,
            88% 0,
            100% 10%,
            100% 88%,
            90% 100%,
            10% 100%,
            0 88%,
            0 10%
        );

    background:
        linear-gradient(
            145deg,
            #68727b 0%,
            #30373d 15%,
            #161a1e 44%,
            #363e45 69%,
            #111417 100%
        );

    border:
        1px solid rgba(255,255,255,.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -20px 45px rgba(0,0,0,.35),
        0 28px 60px rgba(0,0,0,.38);
}


.az-hero-portrait-frame::after {
    content: "";

    position: absolute;

    z-index: -1;

    inset:
        88px 38px 38px;

    clip-path:
        polygon(
            10% 0,
            90% 0,
            100% 10%,
            100% 90%,
            90% 100%,
            10% 100%,
            0 90%,
            0 10%
        );

    background:
        radial-gradient(
            circle at 50% 26%,
            rgba(255,255,255,.12),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #262d33,
            #090c0f
        );

    box-shadow:
        inset 0 0 40px rgba(0,0,0,.55);
}


.az-hero-portrait {
    position: relative;

    z-index: 2;

    width: 94%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(
            0 18px 25px rgba(0,0,0,.45)
        );
}


/* image placeholder until doctor photo is ready */

.az-hero-image-placeholder {
    position: relative;

    z-index: 2;

    width: 76%;
    height: 72%;

    margin-bottom: 38px;

    display: grid;
    place-items: center;

    border:
        1px dashed rgba(255,255,255,.24);

    border-radius:
        14px;

    color: rgba(255,255,255,.55);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    font-size: 13px;

    text-align: center;
}


/* floating metal accent */

.az-hero-seal {
    position: absolute;

    z-index: 3;

    right: 8px;
    bottom: 52px;

    width: 104px;
    height: 104px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #e9ecee;

    background:
        radial-gradient(
            circle at 35% 25%,
            #7f8991,
            #343b41 35%,
            #15191d 68%,
            #080a0c 100%
        );

    border:
        1px solid rgba(255,255,255,.42);

    box-shadow:
        inset 0 2px 2px rgba(255,255,255,.30),
        inset 0 -4px 8px rgba(0,0,0,.55),
        0 12px 25px rgba(0,0,0,.42);

    font-size: 13px;

    font-weight: 800;

    text-align: center;

    line-height: 1.35;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {

    .az-hero-inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, .8fr);

        gap: 36px;
    }

    .az-hero-title {
        font-size:
            clamp(38px, 5vw, 56px);
    }

    .az-hero-portrait-wrap,
    .az-hero-portrait-frame {
        min-height: 500px;
        height: 500px;
    }
}


@media (max-width: 767px) {

    .az-hero {
        min-height: auto;
    }

    .az-hero::after {
        left: 18%;

        width: 72%;

        opacity: .58;
    }

    .az-hero-inner {
        width:
            min(calc(100% - 30px), 620px);

        display: flex;
        flex-direction: column;

        gap: 18px;

        padding:
            38px 0 48px;
    }

    .az-hero-portrait-wrap {
        order: 1;

        width: 100%;

        min-height: 350px;
    }

    .az-hero-portrait-frame {
        width: min(100%, 390px);

        height: 365px;

        min-height: 365px;
    }

    .az-hero-content {
        order: 2;

        width: 100%;

        text-align: center;
    }

    .az-hero-eyebrow {
        justify-content: center;

        margin-bottom: 9px;

        font-size: 12px;
    }

    .az-hero-title {
        font-size:
            clamp(32px, 10vw, 44px);

        line-height: 1.12;
    }

    .az-hero-role {
        margin-top: 17px;

        justify-items: center;

        font-size: 14px;
    }

    .az-hero-actions {
        margin-top: 25px;

        display: grid;

        grid-template-columns:
            1fr 1fr;
    }

    .az-hero-btn {
        min-height: 47px;

        font-size: 11px;
    }

    .az-hero-btn-primary {
        grid-column: 1 / -1;
    }

    .az-hero-stats {
        margin:
            33px auto 0;

        width: 100%;
    }

    .az-hero-stat {
        min-width: 0;

        flex: 1;

        padding:
            11px 7px;
    }

    .az-hero-stat strong {
        font-size: 13px;
    }

    .az-hero-stat span {
        font-size: 8.5px;
    }

    .az-hero-seal {
        right: 3px;

        bottom: 28px;

        width: 78px;
        height: 78px;

        font-size: 10px;
    }
}


@media (max-width: 420px) {

    .az-hero-portrait-wrap {
        min-height: 320px;
    }

    .az-hero-portrait-frame {
        height: 330px;

        min-height: 330px;
    }

    .az-hero-title {
        font-size: 31px;
    }

    .az-hero-actions {
        gap: 8px;
    }
}

/* ==========================================================
   HOME HERO — DOCTOR PORTRAIT
   ========================================================== */

.az-hero-portrait-frame {
    position: relative;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            rgba(8,10,12,.08),
            rgba(8,10,12,.08)
        ),
        url("../images/doctor-home-hero.webp")
        center 28% / cover
        no-repeat;

    box-shadow:
        0 28px 60px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.10);
}


/* إخفاء الـPlaceholder القديم */

.az-hero-image-placeholder {
    display: none !important;
}


/* إلغاء اللوحة المعدنية الداخلية القديمة خلف الصورة */

.az-hero-portrait-frame::before,
.az-hero-portrait-frame::after {
    opacity: 0 !important;
}


/* Desktop */

@media (min-width: 1025px) {

    .az-hero-portrait-frame {
        width: min(100%, 520px);

        height: 580px;

        background-position:
            center 28%;
    }
}


/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {

    .az-hero-portrait-frame {
        height: 500px;

        background-position:
            center 25%;
    }
}


/* Mobile */

@media (max-width: 767px) {

    .az-hero-portrait-frame {
        width: min(100%, 390px);

        height: 430px;
        min-height: 430px;

        background-position:
            center 23%;
    }
}


/* Small Mobile */

@media (max-width: 420px) {

    .az-hero-portrait-frame {
        height: 390px;
        min-height: 390px;

        background-position:
            center 22%;
    }
}