/* ============================================
   ELLA PROPERTIES — Dubai Real Estate Website
   Color Palette inspired by Baytify
   ============================================ */

:root {
    --navy: #1e2a3a;
    --navy-light: #2a3f5f;
    --navy-dark: #141d2b;
    --gold: #c9a96e;
    --gold-light: #dfc393;
    --cream: #faf5f0;
    --cream-dark: #f0e8dd;
    --white: #ffffff;
    --gray-100: #f7f7f8;
    --gray-200: #e8e8eb;
    --gray-300: #d1d1d6;
    --gray-500: #8e8e93;
    --gray-700: #48484a;
    --gray-900: #1c1c1e;
    --blue-accent: #2684ff;
    --green: #34c759;
    --red: #ff3b30;
    --orange: #ff9500;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a { text-decoration: none; color: inherit; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

.btn-full { width: 100%; text-align: center; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(30, 42, 58, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.15em;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

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

.nav-cta {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.lang-option {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    transition: color 0.3s;
    cursor: pointer;
}

.lang-option.active {
    color: var(--gold);
    font-weight: 600;
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1200') center/cover;
    opacity: 0.15;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-tag {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--gold);
}

.hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============ SECTION STYLES ============ */
.section-tag {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ============ ABOUT ============ */
.about {
    padding: 100px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.elvira-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.about-content > p {
    color: var(--gray-700);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============ MARKET INSIGHTS ============ */
.market {
    padding: 100px 0;
    background: var(--white);
}

.chart-section {
    margin: 48px 0;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.chart-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.covid { background: var(--red); }
.legend-dot.recovery { background: var(--green); }
.legend-dot.crisis { background: var(--orange); }

/* Insight Cards */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.covid-card { border-top-color: var(--red); }
.recovery-card { border-top-color: var(--green); }
.crisis-card { border-top-color: var(--orange); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }

.insight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.card-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.covid-card .card-stat { color: var(--red); }
.recovery-card .card-stat { color: var(--green); }
.crisis-card .card-stat { color: var(--orange); }

.insight-card p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Table */
.table-section {
    margin: 48px 0;
}

.table-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

.market-table thead {
    background: var(--navy);
    color: var(--white);
}

.market-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.market-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.market-table tbody tr:hover {
    background: var(--cream);
}

.market-table .positive {
    color: var(--green);
    font-weight: 600;
}

.market-table .negative {
    color: var(--red);
    font-weight: 600;
}

.market-table .highlight {
    color: var(--blue-accent);
    font-weight: 600;
    font-size: 0.8rem;
}

.table-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 16px;
    font-style: italic;
}

/* Outlook */
.outlook-section {
    margin: 48px 0 0;
}

.outlook-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.outlook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.outlook-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.outlook-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.outlook-card p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ AREAS ============ */
.areas {
    padding: 100px 0;
    background: var(--cream);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.area-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.area-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.area-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.area-badge.hot { background: var(--red); }
.area-badge.trending { background: var(--blue-accent); }

.area-info {
    padding: 24px;
}

.area-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.area-info > p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.area-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.area-stats div span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.area-stats div strong {
    font-size: 0.95rem;
    color: var(--navy);
}

/* ============ CTA ============ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}

/* ============ CONTACT ============ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.25;
}

.contact-info > p {
    color: var(--gray-700);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group select { cursor: pointer; }

.form-group textarea { resize: vertical; min-height: 100px; }

/* ============ FOOTER ============ */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer-links a,
.footer-links span {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-legal-links {
    margin-top: 8px;
    font-size: 0.75rem;
}

.footer-legal-links a {
    color: var(--gold-light);
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-legal-links a:hover {
    opacity: 1;
}

.footer-legal-links span {
    margin: 0 8px;
    opacity: 0.4;
}

.footer-company {
    margin-top: 8px;
    font-size: 0.65rem;
    opacity: 0.4;
}

/* ============ LEGAL MODALS ============ */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-content {
    background: var(--white);
    color: var(--navy);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    line-height: 1.7;
}

.legal-modal-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--navy);
}

.legal-modal-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--navy);
}

.legal-modal-content p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #444;
}

.legal-modal-content a {
    color: var(--gold);
}

.legal-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.legal-modal-close:hover {
    color: var(--navy);
}

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

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .hero-content { padding: 100px 24px 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image { order: -1; }

    .insights-grid,
    .outlook-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

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

    .chart-section {
        padding: 24px 16px;
    }

    .chart-wrapper {
        height: 300px;
    }

    .market-table {
        font-size: 0.8rem;
    }

    .market-table th,
    .market-table td {
        padding: 10px 12px;
    }
}

/* ============ CHAT FLOAT BUTTONS ============ */
.chat-floats {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-float,
.telegram-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.telegram-float {
    background: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

@media (max-width: 768px) {
    .chat-floats {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float,
    .telegram-float {
        width: 50px;
        height: 50px;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in.visible {
    opacity: 1;
}
