/* ==================================================
   TAKE MILLION — REAL ESTATE PAGE
================================================== */

.realestate-hero,
.realestate-services {
    --realestate-primary: #0e8a4b;
    --realestate-light: #27d17f;
    --realestate-border: rgba(14, 138, 75, 0.45);
    --realestate-bg: #031009;
}

/* ==============================
   HERO
============================== */

.realestate-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 62vh;
    min-height: 62svh;
    padding: 120px 0 14px;
    overflow: hidden;
    background: var(--realestate-bg);
}

.realestate-hero .hero-bg {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.realestate-hero .hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.014), transparent 35%),
        radial-gradient(circle at 10% 86%, rgba(255, 255, 255, 0), transparent 28%),
        linear-gradient(135deg, rgba(5, 3, 2, 0), rgba(8, 6, 4, 0));
}
.realestate-hero .container,
.realestate-services .container {
    width: min(1500px, calc(100% - 40px));
    margin-inline: auto;
}

.realestate-hero .hero-content {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.realestate-hero .hero-content h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
}

.realestate-hero .hero-content h2 {
    margin: 0 0 25px;
    color: var(--realestate-light);
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.45;
}

.realestate-hero .hero-content p {
    max-width: 850px;
    margin: 0 auto 32px;
    color: #d9ede2;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* زر مطابق لحجم الرئيسية مع نص أبيض */

.realestate-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 15px 35px;
    margin: 0;
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: linear-gradient(
        135deg,
        var(--realestate-primary),
        var(--realestate-light)
    );
    box-shadow: 0 10px 35px rgba(14, 138, 75, 0.32);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.realestate-hero .btn-primary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .realestate-hero .btn-primary:hover {
        transform: translateY(-5px);
        color: #fff;
        box-shadow: 0 20px 50px rgba(14, 138, 75, 0.52);
    }
}

/* ==============================
   SERVICES CARDS
============================== */

.realestate-services {
    padding: 0 0 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 0%, rgba(14, 138, 75, 0.1), transparent 24%),
        linear-gradient(135deg, #020b06, #06170d);
}

.realestate-services .services-row-container {
    overflow: visible;
}

.realestate-services .services-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    align-items: stretch;
}

.realestate-services .service-card.realestate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--realestate-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    transition:
        transform 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.realestate-services .service-card.realestate-card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline: 0;
    height: 3px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--realestate-primary),
        var(--realestate-light),
        transparent
    );
}

.realestate-services .service-image {
    position: relative;
    height: clamp(120px, 9vw, 145px);
    overflow: hidden;
    isolation: isolate;
}

.realestate-services .service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.realestate-services .service-overlay {
    background: linear-gradient(to top, rgba(2, 24, 12, 0.88), transparent);
}

/* نفس نظام أيقونات الرئيسية */

.realestate-services .service-icon {
    position: absolute;
    z-index: 2;
    right: auto;
    inset-inline-end: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(
        135deg,
        var(--realestate-primary),
        var(--realestate-light)
    );
    box-shadow: 0 0 35px rgba(14, 138, 75, 0.65);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.realestate-services .service-body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 16px 12px 18px;
    text-align: center;
}

.realestate-services .service-body h3 {
    min-height: 2.9em;
    margin: 0 0 8px;
    color: var(--realestate-light);
    font-size: 1rem;
    line-height: 1.45;
}

.realestate-services .service-body p {
    display: -webkit-box;
    max-block-size: 5.25em;
    margin: 0;
    overflow: hidden;
    color: #d5e8dc;
    font-size: 0.83rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (hover: hover) and (pointer: fine) {
    .realestate-services .service-card.realestate-card:hover {
        transform: translateY(-8px);
        border-color: var(--realestate-light);
        background: linear-gradient(145deg, #075e35, #0e8a4b, #27d17f);
        box-shadow: 0 19px 45px rgba(14, 138, 75, 0.34);
    }

    .realestate-services .service-card.realestate-card:hover .service-image img {
        transform: scale(1.1);
    }

    .realestate-services .service-card.realestate-card:hover .service-icon {
        transform: scale(1.12) rotate(8deg);
        box-shadow: 0 0 38px rgba(255, 255, 255, 0.5);
    }

    .realestate-services .service-card.realestate-card:hover h3,
    .realestate-services .service-card.realestate-card:hover p {
        color: #fff;
    }
}

/* ==============================
   TABLET — تبقى خمس بطاقات بصف واحد
============================== */

@media (min-width: 769px) and (max-width: 1100px) {
    .realestate-services .services-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .realestate-services .service-image {
        height: 125px;
    }

    .realestate-services .service-body {
        padding: 12px 8px 14px;
    }

    .realestate-services .service-body h3 {
        font-size: 0.9rem;
    }

    .realestate-services .service-body p {
        font-size: 0.76rem;
    }
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {
    .realestate-hero {
        min-height: 560px;
        padding: 110px 0 12px;
    }

    .realestate-hero .container,
    .realestate-services .container {
        width: min(100% - 32px, 1500px);
    }

    .realestate-hero .hero-content p {
        font-size: 1rem;
    }

    .realestate-services {
        padding: 0 0 24px;
    }

    .realestate-services .services-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .realestate-services .service-image {
        height: 155px;
    }
}

@media (max-width: 540px) {
    .realestate-services .services-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .realestate-services .service-image {
        height: 210px;
    }

    .realestate-services .service-body {
        padding: 20px;
    }

    .realestate-services .service-body h3 {
        min-height: auto;
        font-size: 1.15rem;
    }

    .realestate-services .service-body p {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .realestate-hero *,
    .realestate-hero *::before,
    .realestate-hero *::after,
    .realestate-services *,
    .realestate-services *::before,
    .realestate-services *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}/*==================================================
   REAL ESTATE HERO
   WIDE GLASS
==================================================*/

.realestate-glass{

    position:relative;

    z-index:10;

    width:96%;

    max-width:1250px;

    margin:0 auto;

    padding:60px 90px;

    text-align:center;

    background:rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.30);

    border-radius:30px;

    backdrop-filter:blur(14px) saturate(130%);

    -webkit-backdrop-filter:blur(14px) saturate(130%);

    box-shadow:

        0 20px 65px rgba(0,0,0,.35),

        inset 0 1px 0 rgba(255,255,255,.35),

        inset 0 -1px 0 rgba(255,215,0,.15),

        0 0 45px rgba(255,215,0,.10);

    overflow:hidden;

}


/*==================================================
   GOLD TOP LINE
==================================================*/

.realestate-glass::before{

    content:"";

    position:absolute;

    top:0;

    left:10%;

    width:80%;

    height:2px;

    background:

        linear-gradient(
            90deg,
            transparent,
            #ffd000,
            #fff4a3,
            #ffd000,
            transparent
        );

    box-shadow:

        0 0 15px rgba(255,208,0,.60);

}


/*==================================================
   GLASS SHINE
==================================================*/

.realestate-glass-shine{

    position:absolute;

    top:-120%;

    left:-50%;

    width:35%;

    height:350%;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.18),
            rgba(255,215,0,.10),
            transparent
        );

    transform:rotate(20deg);

    pointer-events:none;

    animation:
        realestateGlassShine 8s ease-in-out infinite;

}


@keyframes realestateGlassShine{

    0%{

        left:-50%;

        opacity:0;

    }

    20%{

        opacity:.4;

    }

    50%{

        opacity:.7;

    }

    80%{

        opacity:.3;

    }

    100%{

        left:130%;

        opacity:0;

    }

}


/*==================================================
   TITLE
==================================================*/

.realestate-glass h1{

    position:relative;

    z-index:2;

    max-width:1100px;

    margin:0 auto 20px;

    color:#fff;

    font-size:clamp(38px,5.5vw,72px);

    font-weight:900;

    line-height:1.25;

    text-align:center;

    text-shadow:

        0 3px 8px rgba(0,0,0,.95),

        0 0 20px rgba(0,0,0,.85),

        0 0 35px rgba(255,255,255,.12);

}


/*==================================================
   SUBTITLE
==================================================*/

.realestate-glass h2{

    position:relative;

    z-index:2;

    max-width:1050px;

    margin:0 auto 22px;

    color:#ffd000;

    font-size:clamp(21px,3vw,36px);

    font-weight:800;

    line-height:1.55;

    text-align:center;

    text-shadow:

        0 3px 8px rgba(0,0,0,.95),

        0 0 20px rgba(0,0,0,.85),

        0 0 25px rgba(255,208,0,.35);

}


/*==================================================
   DESCRIPTION
==================================================*/

.realestate-glass p{

    position:relative;

    z-index:2;

    max-width:1000px;

    margin:0 auto;

    color:#fff;

    font-size:clamp(15px,1.5vw,20px);

    font-weight:500;

    line-height:2;

    text-align:center;

    text-shadow:

        0 2px 7px rgba(0,0,0,1),

        0 0 15px rgba(0,0,0,.90);

}


/*==================================================
   GOLD LINE UNDER DESCRIPTION
==================================================*/

.realestate-glass p::after{

    content:"";

    display:block;

    width:110px;

    height:3px;

    margin:22px auto 0;

    border-radius:20px;

    background:

        linear-gradient(
            90deg,
            transparent,
            #ffd000,
            #fff4a3,
            #ffd000,
            transparent
        );

    box-shadow:

        0 0 12px rgba(255,208,0,.55);

}


/*==================================================
   TABLET
==================================================*/

@media(max-width:992px){

    .realestate-glass{

        width:94%;

        padding:45px 45px;

        border-radius:25px;

        backdrop-filter:blur(11px);

        -webkit-backdrop-filter:blur(11px);

    }

}


/*==================================================
   MOBILE
==================================================*/

@media(max-width:768px){

    .realestate-glass{

        width:94%;

        padding:35px 25px;

        border-radius:20px;

        background:rgba(255,255,255,.09);

        backdrop-filter:blur(9px);

        -webkit-backdrop-filter:blur(9px);

    }


    .realestate-glass h1{

        font-size:clamp(32px,8vw,52px);

        line-height:1.3;

    }


    .realestate-glass h2{

        font-size:clamp(19px,5vw,28px);

        line-height:1.6;

    }


    .realestate-glass p{

        font-size:15px;

        line-height:1.9;

    }

}


/*==================================================
   SMALL MOBILE
==================================================*/

@media(max-width:480px){

    .realestate-glass{

        width:95%;

        padding:28px 18px;

        border-radius:17px;

    }


    .realestate-glass h1{

        font-size:30px;

    }


    .realestate-glass h2{

        font-size:18px;

    }


    .realestate-glass p{

        font-size:14px;

    }


    .realestate-glass p::after{

        width:80px;

        height:2px;

    }

}


/*==================================================
   REDUCE MOTION
==================================================*/

@media(prefers-reduced-motion:reduce){

    .realestate-glass-shine{

        animation:none;

    }

}