/* Red Saray Real Estate - Brand Colors */
:root {
    --primary: #BA131A;
    --black: #1A1A1A;
    --grey: #5A5A5A;
    --stone: #F7F5F0;
    --white: #FFFFFF;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-en);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}
[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
img[loading="lazy"] { content-visibility: auto; }
a { color: inherit; text-decoration: none; }

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.logo img { height: 50px; width: auto; }
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav a {
    color: var(--grey);
    font-weight: 500;
    transition: color .2s;
}
.nav a:hover { color: var(--primary); }
.lang-switch {
    background: var(--stone);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .875rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; font-weight: 700; }
.tagline { font-size: 1.25rem; opacity: .9; color: var(--stone); }

/* Hero Slider */
.hero-slider { padding: 0; overflow: hidden; min-height: 400px; }
.hero-slides { position: relative; }
.hero-slide {
    position: absolute;
    inset: 0;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,.85) 0%, rgba(51,51,51,.75) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-btn { margin-top: 16px; display: inline-block; }
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border: none;
    background: rgba(255,255,255,.2);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
}
.hero-prev:hover, .hero-next:hover { background: var(--primary); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
[dir="rtl"] .hero-prev { left: auto; right: 16px; }
[dir="rtl"] .hero-next { right: auto; left: 16px; }
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.hero-dot.active { background: var(--primary); }

/* Sections */
.section {
    padding: 60px 20px;
}
.section h2 {
    color: var(--black);
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}
.about-preview .content {
    max-width: 800px;
    margin: 0 auto 24px;
    color: var(--grey);
}
.about-preview .content p { margin-bottom: 16px; }
.about-preview .btn,
.units-section .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.btn-light {
    background: var(--white);
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.unit-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.unit-image {
    aspect-ratio: 4/3;
    background: var(--stone);
    background-size: cover;
    background-position: center;
    position: relative;
}
.badge.prime {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}
[dir="rtl"] .badge.prime { right: auto; left: 12px; }
.unit-info { padding: 20px; }
.unit-info h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--black);
}
.unit-info .price { color: var(--primary); font-weight: 600; }
.unit-info span { font-size: .875rem; color: var(--grey); }

/* Values */
.values { background: var(--stone); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.value-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.value-card strong { color: var(--primary); display: block; margin-bottom: 8px; }
.value-card p { font-size: .9375rem; color: var(--grey); }
.values-content { max-width: 900px; margin: 0 auto; }
.values-content h3 { color: var(--primary); margin: 20px 0 8px; font-size: 1.1rem; }
.values-content h3:first-child { margin-top: 0; }
.values-content p { color: var(--grey); margin-bottom: 12px; }

/* CTA */
.cta {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}
.cta h2, .cta p { color: var(--white); }
.cta p { margin-bottom: 24px; opacity: .95; }

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 20px 24px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 24px;
}
.footer-logo { height: 50px; filter: brightness(0) invert(1); opacity: .9; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--white); }
/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    align-items: center;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--white);
    transition: background .2s, transform .2s;
}
.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}
.social-icons svg {
    width: 22px;
    height: 22px;
}

/* Hero social - white/light icons */
.hero-social {
    margin-top: 28px;
}
.hero-social a {
    background: rgba(255,255,255,.2);
}

/* Footer social */
.social-icons.footer-social {
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.copyright { font-size: .875rem; opacity: .7; text-align: center; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--black); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.lead-form { max-width: 500px; margin: 0 auto; }
.lead-form .btn { width: 100%; padding: 14px; border: none; cursor: pointer; font-size: 1rem; }
.form-success { background: #e8f5e9; color: #2e7d32; padding: 16px; border-radius: 8px; margin-bottom: 20px; }
.form-error { background: #ffebee; color: #c62828; padding: 16px; border-radius: 8px; margin-bottom: 20px; }

/* Page content */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { margin-bottom: 24px; font-size: 2.5rem; }
.page-content .content p { margin-bottom: 16px; color: var(--grey); }

/* Unit detail */
.unit-detail .unit-gallery { aspect-ratio: 16/9; background: var(--stone); border-radius: 12px; margin-bottom: 24px; background-size: cover; }
.unit-detail .developer-box {
    background: var(--stone);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}
.unit-detail .developer-box a { color: var(--primary); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}
