/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f0f0f;
    --secondary-color: #1a1a1a;
    --accent-color: #d4af37;
    /* Gold */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --border-color: #333;

    --font-main: 'Poppins', sans-serif;

    --accent-hover: #b3912b;
    /* Darker Gold for hover */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 5px 15px rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text-color);
    font-weight: 600;
    /* Ensuring titles are bold/semi-bold */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-gold {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: #000 !important;
    /* Force black text for contrast */
    font-weight: 700;
    /* Bold for readability */
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #000 !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('assets/hero_dubai.png') no-repeat center center/cover;
    /* Fallback if image missing */
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    color: #fff;
    /* Ensure hero text is white */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    /* Explicit white for contrast */
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #f0f0f0;
    /* High contrast off-white */
}

/* Pain Points Section */
.pain-points {
    background-color: #0d0d0d;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pain-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    /* Slightly rounded, still sharp */
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pain-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.pain-card ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.pain-card.spain ul li::before {
    content: "✕";
    color: #ff4d4d;
    position: absolute;
    left: 0;
}

.pain-card.dubai ul li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Benefits (Stats) */
.benefits {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('assets/luxury_interior.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #fff;
    /* High contrast against dark bg */
}

/* Areas */
.areas-table-container {
    overflow-x: auto;
}

.areas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.areas-table th,
.areas-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.areas-table th {
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-left: 2px solid var(--accent-color);
    position: relative;
}

.step-card::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    opacity: 0.5;
    position: absolute;
    top: 20px;
    right: 20px;
}

.step-card h4 {
    margin-top: 20px;
    /* Make space for number */
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Authority */
.authority {
    background-color: #0d0d0d;
}

.authority-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.cinematic-bg {
    position: relative;
    background: linear-gradient(-45deg, #0d0d0d, #1a1a1a, #2c2408, #0d0d0d);
    background-size: 400% 400%;
    animation: cinematicGradient 15s ease infinite;
    overflow: hidden;
}

/* Overlay to darken slightly */
.cinematic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes cinematicGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.advisor-container {
    flex: 0 0 300px;
    /* Fixed width for image container */
    display: flex;
    justify-content: center;
}

.advisor-profile {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    background-color: #fff;
    /* Fallback/Contrast due to white bg in photo */
}

.authority-text {
    flex: 1;
    min-width: 300px;
}

.authority-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    /* Ensure contrast */
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    /* Slightly smoother */
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    padding: 20px 0;
    color: #ccc;
    /* Readable light grey */
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Increased to prevent truncation on mobile */
    /* approximate max height */
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Footer */
footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-urgent {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Investor Profiles */
.investor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.investor-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.investor-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
}

.price-range {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.investor-concept {
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.investor-desc {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes button down */
}

/* Specific Card Tweaks */
.investor-card.featured {
    background: linear-gradient(145deg, #201c10, #0f0f0f);
    /* Subtle gold tint */
    border-color: rgba(212, 175, 55, 0.3);
}

.investor-card.featured:hover {
    border-color: var(--accent-color);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.roi {
    background-color: var(--accent-color);
    color: #000;
}

.badge.type {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.property-location {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.card-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    font-size: 30px;
    /* Use an icon library in HTML or SVG */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Interactive Map */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f0f0f;
    /* Fallback */
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    min-height: 500px;
    /* Prevent collapse */
}

.dubai-map-bg {
    width: 100%;
    display: block;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-container:hover .dubai-map-bg {
    opacity: 1;
}

.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-color);
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

.map-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: 20;
}

.map-pin:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.map-tooltip h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.map-tooltip p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #fff;
}

/* Mobile adjustments */
/* Mobile adjustments */
@media (max-width: 768px) {

    /* Global */
    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Typography */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 0;
    }

    /* Grids to Single Column */
    .comparison-grid,
    .process-steps,
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 for stats */
        gap: 20px;
    }

    /* Authority Section */
    .authority-content {
        flex-direction: column;
        text-align: center;
    }

    .authority-text h2 {
        text-align: center !important;
    }

    .advisor-container {
        flex: 0 0 auto;
    }

    .advisor-profile {
        width: 200px;
        height: 200px;
    }

    /* FAQ Optimizations */
    .faq-question {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 1rem;
        padding-right: 15px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-answer p {
        font-size: 0.95rem;
        padding: 15px 0;
    }

    /* Catalog Fixes */
    .catalog-grid {
        margin-top: 30px;
    }

    .property-content {
        padding: 20px;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack stats on very small screens */
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}