/* =============== VARIABLES / THEME =============== */
:root {
    --bg-color: #f8f9fa;
    /* Light grey background */
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    /* Deep slate */
    --text-secondary: #64748b;

    --primary-color: #0f172a;
    /* Navy Blue / Dark Slate (Trust & Premium) */
    --secondary-color: #cda873;
    /* Elegant Gold Accent */
    --accent-blue: #2563eb;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============== BASE & UTILITIES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1.5rem;
}

/* =============== TOP BAR =============== */
.top-bar {
    background: var(--primary-color);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.social-icons a {
    margin-left: 1rem;
    color: #e2e8f0;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* =============== TYPOGRAPHY =============== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 span {
    color: var(--secondary-color);
}

p {
    color: var(--text-secondary);
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    border-radius: 4px;
    /* Professional square-ish edges */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline.text-dark {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline.text-dark:hover {
    background: var(--text-primary);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* =============== NAVBAR =============== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* =============== HERO SECTION =============== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-wrapper {
    width: 100%;
}

.hero-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    margin-top: 1rem;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.search-input i {
    color: var(--secondary-color);
}

.search-input input,
.search-input select {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    color: var(--text-primary);
}

.btn-search {
    padding: 1rem 2rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* =============== PROPERTI SECTION =============== */
.properties {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.prop-card {
    background: var(--surface-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    border: 1px solid #e2e8f0;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.prop-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

/* Image Placeholders (Elegant Gradients with Icons) */
.img-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.house-ph-1 {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.apt-ph-1 {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.house-ph-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.img-placeholder::after {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.apt-ph-1::after {
    content: '\f1ad';
}

.prop-card:hover .img-placeholder {
    transform: scale(1.05);
    transition: var(--transition-slow);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.status-badge.sale {
    background-color: var(--accent-blue);
}

.status-badge.rent {
    background-color: var(--secondary-color);
}

.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 1.1rem;
}

.prop-content {
    padding: 1.5rem;
}

.prop-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.location i {
    color: var(--secondary-color);
}

.prop-facilities {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.prop-facilities span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prop-facilities i {
    color: var(--text-secondary);
}

/* =============== SERVICES / TRUST SECTION =============== */
.services-trust {
    padding: 6rem 0;
    background: #fff;
}

.trust-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-content h2 {
    font-size: 2.5rem;
}

.trust-content>p {
    margin-bottom: 2.5rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(205, 168, 115, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.service-item p {
    font-size: 0.95rem;
}

/* Visual Grid */
.trust-visual {
    position: relative;
}

.visual-grid {
    display: flex;
    gap: 1.5rem;
    height: 500px;
}

.vg-item {
    background: #cbd5e1;
    border-radius: 6px;
    width: 100%;
    position: relative;
}

.ph-tall {
    height: 100%;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
}

.vg-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.ph-short-1 {
    height: 60%;
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
}

.ph-short-2 {
    height: 40%;
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary-color);
    color: #fff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.experience-badge h2 {
    font-size: 3rem;
    color: #fff;
    margin: 0;
}

.experience-badge p {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0;
}

/* =============== CTA BANNER =============== */
.cta-banner {
    background: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    display: flex;
    justify-content: center;
}

.cta-banner-content {
    text-align: center;
    max-width: 700px;
    color: #fff;
}

.cta-banner-content h2 {
    color: #fff;
}

.cta-banner-content p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* =============== FOOTER =============== */
footer {
    background: #fff;
    padding: 4rem 0 0;
}

.border-bottom {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand p {
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact-info h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-footer {
    display: flex;
    gap: 1rem;
}

.social-footer a {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-footer a:hover {
    color: var(--primary-color);
}

/* =============== ANIMATIONS =============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
    .prop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-wrapper {
        grid-template-columns: 1fr;
    }

    .trust-visual {
        margin-top: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .experience-badge {
        left: 0;
        bottom: -20px;
    }

    .search-bar {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 0.5rem;
    }

    .search-input {
        width: 100%;
        border-right: none;
        background: #fff;
        border-radius: 4px;
    }

    .btn-search {
        width: 100%;
        margin-left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-links,
    .btn-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .prop-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}