/* public/css/site/services-realestate.css */

:root {
    --re-ink: var(--black, #0a0a0a);
    --re-bg: var(--white, #ffffff);
    --re-muted: var(--muted, #6b6f76);
    --re-line: var(--line, #e9eaec);
    --re-card: var(--card, #f7f7f8);
    --re-accent: var(--accent, #c9a552);
    --re-accent-soft: var(--accent-2, #e2c777);
    --re-accent-ink: var(--accent-ink, #13100a);
}

/* ===== Generic section style ===== */
.re-section {
    padding-block: clamp(32px, 10vh, 92px);
    background: var(--re-bg);
}
.re-section__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(20px, 4.4vw, 32px);
    color: var(--re-ink);
    letter-spacing: 0.2px;
}
.re-section__intro {
    margin: 8px 0 0;
    color: var(--re-muted);
    font-weight: 600;
    line-height: 1.9;
}

/* ===== Hero ===== */
.re-hero {
    position: relative;
    color: #fff;
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    padding-block: clamp(40px, 14vh, 110px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    isolation: isolate;
    overflow: clip;
}
.re-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            1200px 520px at 80% -20%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 50%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}
.re-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin-inline: auto;
}
.re-hero__title {
    margin: 0;
    font-weight: 900;
    font-size: clamp(26px, 5.6vw, 40px);
    line-height: 1.25;
    letter-spacing: 0.2px;
}
.re-hero__line {
    display: block;
}
.re-hero__line--accent {
    background: linear-gradient(90deg, var(--re-accent), var(--re-accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Intro ===== */
.re-intro {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.re-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}
.re-intro__content {
    min-width: 0;
}
.re-intro__text {
    margin: 12px 0 0;
    font-weight: 600;
    color: #4b5563;
    line-height: 2;
}
.re-intro__media {
    display: flex;
    justify-content: center;
}
.re-intro__frame {
    margin: 0;
    max-width: 520px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.85);
}
.re-intro__frame::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 40px;
    border: 1px solid rgba(201, 165, 82, 0.55);
    pointer-events: none;
}
.re-intro__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.7s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .re-intro__frame:hover .re-intro__image {
        transform: scale(1.08);
    }
}

/* ===== Services grid ===== */
.re-services {
    background: var(--section-background-color);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
.re-services__head {
    max-width: 880px;
    margin: 0 auto 24px;
    text-align: center;
}
.re-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.re-service {
    position: relative;
    padding: 16px 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}
.re-service::before {
    content: "";
    position: absolute;
    inset-inline-start: -10%;
    inset-block-start: -25%;
    width: 52%;
    height: 70%;
    background: radial-gradient(
        circle at 0 0,
        rgba(201, 165, 82, 0.16),
        transparent 60%
    );
    opacity: 0.9;
    pointer-events: none;
}
.re-service__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--re-ink);
}
.re-service__text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.9;
}

/* ===== Outro ===== */
.re-outro {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}
.re-outro__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.re-outro__text {
    margin: 0;
    font-weight: 600;
    color: #374151;
    line-height: 2;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 1024px) {
    .re-intro__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .re-intro__media {
        order: -1;
    }
    .re-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .re-intro__frame {
        border-radius: 24px;
    }
    .re-services__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .re-intro__frame {
        border-radius: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *[data-anim] {
        animation: none !important;
        transition: none !important;
        filter: none !important;
    }
}
