/* =====================================================
   PM REALTY - MAIN STYLESHEET
   ===================================================== */

/* ---------- ROOT & RESET ---------- */

:root {
    --primary: #1769ff;
    --primary-dark: #0d4dcc;
    --dark: #111111;
    --dark-soft: #1b1b1b;
    --text: #222222;
    --muted: #777777;
    --light: #f5f6f8;
    --white: #ffffff;
    --border: #e5e5e5;

    --container: 1200px;
    --radius: 14px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1px;
}

h2 span {
    color: var(--primary);
}


/* ---------- HEADER / NAVIGATION ---------- */

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid #eeeeee;
}

.navbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--white);
    font-size: 19px;
    font-weight: 900;
    border-radius: 10px;
}

.brand-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu > a {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-menu > a:not(.login-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-menu > a:hover,
.nav-menu > a.active {
    color: var(--primary);
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after {
    width: 100%;
}

.nav-menu .login-link {
    background: var(--primary);
    color: var(--white);
    padding: 12px 23px;
    border-radius: 6px;
    transition: background var(--transition),
                transform var(--transition);
}

.nav-menu .login-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--light);
    border-radius: 8px;
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}


/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.btn-light:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}


/* ---------- HERO SECTION ---------- */

.hero-section {
    background: var(--dark);
    color: var(--white);
    padding: 75px 0 65px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    padding: 20px 0;
}

.hero-content .eyebrow {
    color: #77a7ff;
}

.hero-content h1 {
    max-width: 600px;
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    display: block;
    color: #78a7ff;
}

.hero-description {
    max-width: 470px;
    color: #c2c2c2;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}


/* ---------- HERO PROPERTY SLIDER ---------- */

.hero-property-area {
    min-width: 0;
}

.hero-slider,
.hero-empty-state {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    animation: slideFade 0.5s ease;
}

.hero-slide.active {
    display: block;
}

.hero-image-link {
    display: block;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #292929;
}

.hero-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image-link:hover .hero-property-image {
    transform: scale(1.04);
}

.hero-property-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 0 18px;
}

.property-location {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.hero-property-info .property-location {
    color: #b7b7b7;
}

.hero-property-info h2 {
    color: var(--white);
    font-size: 24px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.property-price {
    color: var(--primary);
    font-size: 19px;
    font-weight: 800;
}

.hero-property-info .property-price {
    color: #8db4ff;
}

.round-arrow {
    width: 47px;
    height: 47px;
    min-width: 47px;
    display: grid;
    place-items: center;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    font-size: 22px;
    transition: var(--transition);
}

.round-arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: rotate(45deg);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #373737;
    padding-top: 20px;
}

.slider-controls button {
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: color var(--transition);
}

.slider-controls button:hover {
    color: #83adff;
}

.slider-controls span {
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 700;
}

.image-placeholder {
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #252525, #414141);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
}

.hero-placeholder {
    height: 420px;
    border-radius: var(--radius);
}

.hero-empty-state .hero-property-info {
    border-bottom: 1px solid #373737;
}

@keyframes slideFade {
    from {
        opacity: 0.35;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- ABOUT SECTION ---------- */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-image-wrap {
    min-width: 0;
}

.about-image-placeholder {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.85), rgba(23, 105, 255, 0.65)),
        #333333;
    color: var(--white);
    text-align: center;
    padding: 30px;
}

.about-image-placeholder span {
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 5px;
}

.about-image-placeholder p {
    color: #e1e1e1;
    font-size: 14px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translate(4px, -4px);
}


/* ---------- SECTION HEADING ---------- */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-top: 5px;
}


/* ---------- SERVICES ---------- */

.services-section {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    padding: 38px 30px;
    background: var(--white);
    border: 1px solid #eeeeee;
    border-radius: var(--radius);
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.service-number {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-card > a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}


/* ---------- STATISTICS ---------- */

.statistics-section {
    padding: 65px 0;
    background: var(--dark);
    color: var(--white);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    border-right: 1px solid #393939;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card h3 {
    color: #82adff;
    font-size: clamp(30px, 4vw, 45px);
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-card p {
    color: #c6c6c6;
    font-size: 13px;
}

.statistics-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #cccccc;
}


/* ---------- LATEST PROPERTIES ---------- */

.properties-section {
    background: var(--white);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.property-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.property-card-image {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
    background: #eeeeee;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.06);
}

.property-card-image .image-placeholder {
    height: 100%;
    min-height: 240px;
    font-size: 20px;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 13px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.property-card-content {
    padding: 24px;
}

.property-card-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.property-card-content h3 a:hover {
    color: var(--primary);
}

.property-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.property-card-bottom .property-price {
    font-size: 18px;
}

.property-area {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.property-card .round-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-color: var(--border);
}

.empty-properties {
    padding: 65px 20px;
    text-align: center;
    background: var(--light);
    border-radius: var(--radius);
}

.empty-properties h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

.empty-properties p {
    color: var(--muted);
    font-size: 14px;
}


/* ---------- COMMUNITY CTA ---------- */

.community-section {
    padding: 75px 0;
    background: var(--primary);
    color: var(--white);
}

.community-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.community-content .eyebrow {
    color: #d7e5ff;
}

.community-content h2 {
    font-size: clamp(30px, 4vw, 43px);
    margin-bottom: 15px;
}

.community-content p:not(.eyebrow) {
    max-width: 600px;
    color: #e4edff;
    font-size: 14px;
}


/* ---------- FOOTER ---------- */

.site-footer {
    padding: 70px 0 0;
    background: #101010;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 55px;
}

.footer-brand .brand-name {
    color: var(--white);
}

.footer-brand > p {
    max-width: 330px;
    color: #aaaaaa;
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-column a {
    color: #aaaaaa;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: #82adff;
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    color: #999999;
    font-size: 12px;
    text-align: center;
}


/* ---------- RESPONSIVE: TABLETS ---------- */

@media (max-width: 1100px) {
    .navbar {
        gap: 20px;
    }

    .nav-menu {
        gap: 16px;
    }

    .nav-menu > a {
        font-size: 12px;
    }

    .nav-menu .login-link {
        padding: 10px 16px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 5vw, 54px);
    }

    .about-grid {
        gap: 45px;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------- RESPONSIVE: MOBILE NAVIGATION ---------- */

@media (max-width: 850px) {
    .navbar {
        min-height: 75px;
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        padding: 18px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > a {
        display: block;
        padding: 13px 10px;
        font-size: 14px;
        border-bottom: 1px solid #eeeeee;
    }

    .nav-menu > a:not(.login-link)::after {
        display: none;
    }

    .nav-menu .login-link {
        text-align: center;
        margin-top: 12px;
        border-bottom: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-content h1 {
        max-width: 700px;
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-image-link {
        height: 390px;
    }

    .hero-placeholder {
        height: 390px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-placeholder {
        min-height: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .community-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ---------- RESPONSIVE: SMALL MOBILE ---------- */

@media (max-width: 550px) {
    .container {
        width: 90%;
    }

    .section {
        padding: 65px 0;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        font-size: 17px;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-section {
        padding: 55px 0 45px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 10vw, 47px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image-link {
        height: 270px;
    }

    .hero-placeholder {
        height: 270px;
    }

    .hero-property-info {
        align-items: flex-start;
    }

    .hero-property-info h2 {
        font-size: 20px;
    }

    .hero-property-info .property-price {
        font-size: 17px;
    }

    .round-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 30px;
    }

    .about-image-placeholder {
        min-height: 270px;
    }

    .about-image-placeholder span {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 25px;
    }

    .statistics-section {
        padding: 45px 0;
    }

    .statistics-grid {
        gap: 20px 10px;
    }

    .stat-card {
        padding: 15px 5px;
    }

    .stat-card h3 {
        font-size: 30px;
    }

    .stat-card p {
        font-size: 12px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-card-image {
        height: 230px;
    }

    .community-section {
        padding: 55px 0;
    }

    .community-content h2 {
        font-size: 31px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }
}


/* ---------- ACCESSIBILITY ---------- */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #80adff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* PM REALTY Official Logo */

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 180px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}

/* Footer logo */

.footer-brand .brand-logo {
    width: 180px;
    max-height: 65px;
}

/* Mobile logo */

@media (max-width: 550px) {
    .brand-logo {
        width: 145px;
        max-height: 55px;
    }

    .footer-brand .brand-logo {
        width: 160px;
    }
}
/* =====================================
   PROPERTY HERO - DYNAMIC BACKGROUND
===================================== */

.property-hero {
    position: relative;
    min-height: 560px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-color: #0b101b;

    background-image:
        linear-gradient(
            90deg,
            rgba(7, 12, 22, 0.94) 0%,
            rgba(7, 12, 22, 0.78) 45%,
            rgba(7, 12, 22, 0.35) 100%
        ),
        var(--hero-image, none);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.property-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(7, 12, 22, 0.35),
        transparent 65%
    );

    pointer-events: none;
}

.property-hero-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 80px 0;

    color: #ffffff;
}

.property-hero-tag {
    display: block;
    margin-bottom: 24px;

    color: #6ea0ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.property-hero-content h1 {
    margin: 0 0 22px;

    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.property-hero-content h1 span {
    color: #6ea0ff;
}

.property-hero-content p {
    max-width: 650px;
    margin: 0 0 30px;

    color: #e0e4ec;
    font-size: 17px;
    line-height: 1.8;
}

.hero-property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-bottom: 28px;

    color: #ffffff;
    font-size: 14px;
}

.hero-property-info span {
    padding-left: 14px;
    border-left: 2px solid #6ea0ff;
}

.property-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 18px 28px;
    border-radius: 7px;

    background: #1764f5;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: background 0.25s ease, transform 0.25s ease;
}

.property-hero-button:hover {
    background: #0d50d0;
    transform: translateY(-3px);
}

.property-hero-button span {
    font-size: 18px;
}

/* Responsive */

@media (max-width: 768px) {
    .property-hero {
        min-height: 500px;
        background-position: center;
    }

    .property-hero-content {
        width: 88%;
        padding: 65px 0;
    }

    .property-hero-tag {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .property-hero-content h1 {
        font-size: clamp(36px, 10vw, 56px);
    }

    .property-hero-content p {
        font-size: 15px;
    }
}