/* Vertex Real Estate Marketing Landing Page - Exact Copy of Reference Structure */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    /* Gray-600 */
    --accent: #1D4ED8;
    /* Professional Blue */
    --accent-hover: #1E40AF;
    --border-color: #E5E7EB;

    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Cairo', sans-serif;

    --container-max: 1200px;
    --border-radius: 12px;
}

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

html {
    width: 100%;
}

body.real-estate-landing {
    direction: rtl;
    text-align: right;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
}

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

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

/* Utilities */
.r-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.r-text-accent {
    color: var(--accent);
}

.r-text-center {
    margin: auto !important;
    text-align: center;
}

.r-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.r-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.r-section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem !important;
    font-weight: 800;
}

/* 1. Header */
.r-header {
    padding: 24px 0;
    position: relative;
    z-index: 100;
}

.r-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.r-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.r-logo span {
    color: var(--accent);
}

.r-header-btn {
    background-color: var(--accent);
    color: #ffffff;
    padding: 8px 20px;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* 2. Hero Section */
.r-hero {
    padding: 60px 0 100px;
}

.r-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.r-hero-badge {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.r-hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.r-hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 90%;
}

.r-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.r-hero-image img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.r-floating-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.r-floating-card .r-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(29, 78, 216, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.2rem;
}

/* 3. Challenges Section */
.r-challenges {
    padding: 80px 0;
    background-color: var(--bg-card-hover);
}

.r-challenges-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.r-challenge-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.r-challenge-card i {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-top: 4px;
}

.r-challenge-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.r-challenge-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.r-challenges-footer {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* 4. Statement / Video Section */
.r-statement {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.r-statement-badge {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.r-statement-title {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.r-video-container {
    max-width: 900px;
    margin: 0 auto 24px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.r-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.r-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding-left: 5px;
    /* Visual center for play triangle */
}

.r-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.r-statement-caption {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
}

/* 5. Process Section */
.r-process {
    padding: 100px 0;
    background-color: var(--bg-card-hover);
}

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

.r-process-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    transition: background-color 0.3s ease;
}

.r-process-card:hover {
    background-color: var(--bg-card-hover);
}

.r-process-num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    font-family: var(--font-heading);
    line-height: 1;
}

.r-process-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.r-process-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.r-process-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* 6. Results Section */
.r-results {
    padding: 100px 0;
}

.r-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.r-result-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.r-result-img {
    height: 200px;
    width: 100%;
}

.r-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.r-result-content {
    padding: 24px;
    text-align: center;
}

.r-result-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.r-result-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 7. Testimonials Section */
.r-testimonials {
    padding: 80px 0;
    background-color: var(--bg-card-hover);
}

.r-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.r-testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.r-quote-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 16px;
}

.r-testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.r-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.r-testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.r-testimonial-author-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.r-testimonial-author-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 8. FAQ Section */
.r-faq {
    padding: 100px 0;
}

.r-faq-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.r-faq-text {
    flex: 1;
}

.r-faq-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

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

.r-faq-accordion {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.r-faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.r-faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
}

.r-faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
}

/* For active state simulation */
.r-faq-item.active .r-faq-answer {
    display: block;
}

.r-faq-item.active .r-faq-question i {
    transform: rotate(180deg);
}

.r-faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

/* 9. CTA Form Section */
.r-cta {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.r-cta-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.r-cta-badge {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    padding: 4px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.r-cta-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.r-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.r-form-group {
    margin-bottom: 16px;
    text-align: right;
}

.r-form-control {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    direction: rtl !important;
}

.r-form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.r-form-row {
    display: flex;
    gap: 16px;
}

.r-form-row .r-form-group {
    flex: 1;
}

.r-cta-box .r-btn {
    width: 100%;
    margin-bottom: 12px;
}

.r-cta-note {
    margin: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.r-cta-note i {
    color: var(--accent);
}

/* Footer Minimal */
.r-footer-min {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.r-footer-links {
    display: flex;
    gap: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .r-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .r-hero-title {
        font-size: 2.8rem;
    }

    .r-hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .r-floating-card {
        display: none;
    }

    .r-process-grid {
        grid-template-columns: 1fr;
    }

    .r-results-grid {
        grid-template-columns: 1fr;
    }

    .r-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .r-faq-flex {
        flex-direction: column;
        text-align: center;
    }

    .r-faq-text {
        margin-bottom: 24px;
    }

    .r-form-row {
        flex-direction: column;
        gap: 0;
    }

    .r-footer-flex {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .r-hero-title {
        font-size: 2rem;
    }

    .r-section-title {
        font-size: 1.8rem;
    }

    .r-cta-box {
        padding: 40px 20px;
    }

    .r-testimonial-card {
        padding: 24px;
    }

    .r-process-card {
        padding: 30px 20px;
    }

    .r-header-inner {
        flex-direction: column;
        gap: 16px;
    }

    .r-footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* --- Animations & Micro Interactions --- */

/* 1. Floating Animation for Elements */
@keyframes r-float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.r-floating-card {
    animation: r-float 4s ease-in-out infinite;
    will-change: transform;
}

/* 2. Button Enhanced Hover Engine */
.r-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.r-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease-out;
}

.r-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.r-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

/* 3. Pulse Glow for Play Button */
@keyframes r-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(29, 78, 216, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
    }
}

.r-play-btn {
    animation: r-pulse-glow 2s infinite;
}

.r-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background-color: var(--accent) !important;
    color: white !important;
}

/* 4. Cards 3D Lift */
.r-challenge-card,
.r-process-card,
.r-result-card,
.r-testimonial-card,
.r-faq-item,
.r-cta-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.r-challenge-card:hover,
.r-process-card:hover,
.r-result-card:hover,
.r-testimonial-card:hover,
.r-cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(29, 78, 216, 0.2);
}

/* 5. Image Zoom Reveal */
.r-result-img,
.r-hero-image,
.r-video-container {
    overflow: hidden;
}

.r-result-img img,
.r-hero-image img,
.r-video-container img {
    transition: transform 0.7s ease;
}

.r-result-card:hover .r-result-img img,
.r-hero-image:hover img,
.r-video-container:hover img {
    transform: scale(1.1);
}

/* 6. Process Icon Twirl */
.r-process-icon {
    transition: transform 0.5s ease;
    display: inline-block;
}

.r-process-card:hover .r-process-icon {
    transform: scale(1.2) rotate(15deg);
}

/* 7. Real Estate Abstract Moving Background Shapes */
.r-bg-moving-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.r-moving-shape {
    position: absolute;
    border: 2px solid rgba(29, 78, 216, 0.08);
    /* Blue accent subtle */
    border-radius: 4px;
    animation: r-flyUp linear infinite;
    bottom: -150px;
    will-change: transform, opacity;
}

.r-shape-house {
    width: 50px;
    height: 50px;
    border-top: none;
    background: transparent;
}

.r-shape-house::before {
    content: '';
    position: absolute;
    top: -26px;
    left: -2px;
    /* compensate for border */
    width: 0;
    height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 25px solid rgba(29, 78, 216, 0.08);
}

/* Buildings */
.r-shape-building {
    background: rgba(29, 78, 216, 0.02);
}

.r-moving-shape:nth-child(1) {
    left: 10%;
    width: 70px;
    height: 120px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.r-moving-shape:nth-child(2) {
    left: 25%;
    transform: scale(0.7);
    animation-duration: 22s;
    animation-delay: 4s;
}

.r-moving-shape:nth-child(3) {
    left: 75%;
    width: 50px;
    height: 160px;
    animation-duration: 30s;
    animation-delay: 2s;
}

.r-moving-shape:nth-child(4) {
    left: 85%;
    transform: scale(0.9);
    animation-duration: 24s;
    animation-delay: 10s;
}

.r-moving-shape:nth-child(5) {
    left: 50%;
    width: 90px;
    height: 80px;
    animation-duration: 28s;
    animation-delay: 15s;
}

@keyframes r-flyUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-1200px) rotate(20deg);
        opacity: 0;
    }
}