/* ===== ROOT VARIABLES ===== */
:root {
    --primary-navy: #0A1F44;
    --secondary-navy: #1E3A5F;
    --gold: #D4AF37;
    --gold-light: #E8C55B;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E0E0;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===== NAVIGATION (Legacy - kept for other pages) ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    will-change: box-shadow;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand-logo {
    height: 94px;
    width: 94px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-brand-logo:hover {
    transform: scale(1.05);
}

.nav-brand-text h1 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    letter-spacing: 2px;
}

.nav-brand-text .tagline {
    font-size: 0.75rem;
    color: var(--gold);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 5px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--gold-light);
    color: var(--primary-navy) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== HERO NAVIGATION ===== */
.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.hero-nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-brand-logo {
    height: 94px;
    width: 94px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-brand-logo:hover {
    transform: scale(1.05);
}

.hero-brand-text h1 {
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-brand-text .tagline {
    font-size: 0.75rem;
    color: var(--gold);
    margin-top: -5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hero-nav-menu a:hover,
.hero-nav-menu a.active {
    color: var(--gold);
}

.hero-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.hero-nav-menu a:hover::after,
.hero-nav-menu a.active::after {
    width: 100%;
}

.hero-nav-menu .btn-contact {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 5px;
    text-shadow: none;
}

.hero-nav-menu .btn-contact::after {
    display: none;
}

.hero-nav-menu .btn-contact:hover {
    background: var(--gold-light);
    color: var(--primary-navy) !important;
}

.hero-nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hero-nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    text-align: center;
    color: white;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 31, 68, 0.7), rgba(10, 31, 68, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ===== SEARCH BOX ===== */
.search-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 1000px;
    margin: 0 auto;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-field {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
}

.search-field i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.btn-search {
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    background: var(--gold-light);
    color: var(--primary-navy);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: white;
}

.btn-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    gap: 0.8rem;
}

/* ===== SECTIONS ===== */
.section-label {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.section-header.centered {
    text-align: center;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('../media/palm-jumeirah-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    text-align: center;
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Fix for pages with separate navbar */
.page-header-simple {
    position: relative !important;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

.page-header > .container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0 20px;
}

.page-header .hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

/* Completed Projects Page Header */
.page-header-completed {
    background: linear-gradient(rgba(10, 31, 68, 0.4), rgba(10, 31, 68, 0.4)), url('../media/completed-projects-hero.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Off Plan Page Header */
.page-header-offplan {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('../media/palm-jumeirah-hero.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    height: 100vh !important;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: var(--white);
}

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

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-gray);
}

/* ===== PROPERTY GRID ===== */
.featured-properties,
.properties-listing {
    padding: 5rem 0;
    background: var(--light-gray);
    position: relative;
    z-index: 10;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

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

.view-details {
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

/* ===== COMMUNITIES ===== */
.communities-preview,
.communities-listing {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.community-card.large {
    grid-column: span 2;
    height: 450px;
}

.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover img {
    transform: scale(1.1);
}

.community-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 68, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.community-content {
    color: white;
}

.community-content h2,
.community-content h3 {
    margin-bottom: 0.5rem;
}

.community-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.community-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
}

.community-features li {
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-range {
    display: inline-block;
    background: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 5rem 0;
    background: var(--light-gray);
    position: relative;
    z-index: 10;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    color: var(--primary-navy);
    display: block;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--gold);
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('../media/dubai-skyline-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 2px;
}

.newsletter-content p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('../media/palm-jumeirah-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.cta-content p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== FILTERS ===== */
.filters-section {
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.toggle-switch {
    display: flex;
    gap: 0;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    flex: 1;
    padding: 0.8rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.toggle-switch input[type="radio"]:checked + label {
    background: var(--gold);
    color: white;
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

/* ===== LISTING HEADER ===== */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn, .page-num {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--medium-gray);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num.active,
.page-btn:hover:not(:disabled),
.page-num:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.team-member h3 {
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}

.team-member p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.team-member .bio {
    font-size: 0.9rem;
}

/* ===== SERVICES ===== */
.service-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse > * {
    direction: ltr;
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.service-content h2 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-benefits {
    margin: 1.5rem 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-benefits i {
    color: var(--gold);
}

/* ===== WHY DUBAI ===== */
.why-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.stats-section {
    padding: 5rem 0;
    background: var(--light-gray);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: white;
}

.service-item {
    margin-bottom: 4rem;
}

/* ===== ABOUT ===== */
.about-story {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: white;
}

.mission-values {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: var(--light-gray);
}

.awards-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background: white;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 5rem 0;
}

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

.contact-info h2,
.contact-form-container h2 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}

.contact-text a {
    color: var(--gold);
}

.social-section h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--gold-light);
    color: var(--primary-navy);
}

/* ===== FORMS ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    color: #155724;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== MAP ===== */
.map-section {
    margin-bottom: 5rem;
}

.map-section h2 {
    color: var(--primary-navy);
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(rgba(10, 31, 68, 0.95), rgba(10, 31, 68, 0.95)), url('../media/dubai-skyline-hero.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 0 0.5rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.footer h3 {
    margin-bottom: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.3rem;
}

.footer h4 {
    margin-bottom: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--gold);
}

.footer p {
    opacity: 0.9;
    line-height: 1.8;
    font-weight: 300;
}

.footer ul li {
    margin-bottom: 0.4rem;
}

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

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
}

.footer .contact-info li a {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: white;
    transition: color 0.3s ease;
}

.footer .contact-info li a:hover {
    color: var(--gold);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Legacy navbar for other pages */
    .nav-brand-logo {
        height: 72px;
        width: 72px;
    }

    .nav-brand-text h1 {
        font-size: 1.2rem;
    }

    .nav-brand-text .tagline {
        font-size: 0.65rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Hero navigation */
    .hero-header .container {
        padding: 0 1rem;
    }

    .hero-brand-logo {
        height: 72px;
        width: 72px;
    }

    .hero-brand-text h1 {
        font-size: 1.2rem;
    }

    .hero-brand-text .tagline {
        font-size: 0.65rem;
    }

    .hero-nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero-nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(10, 31, 68, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding: 6rem 2rem 2rem;
        justify-content: flex-start;
    }

    .hero-nav-menu.active {
        left: 0;
    }

    .hero-nav-menu li {
        margin-bottom: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

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

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

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

    .community-card.large {
        grid-column: span 1;
    }

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

    .cta-buttons,
    .filter-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Mobile Touch Optimization - Ensure 44x44px minimum touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-contact,
    .cta-button,
    button,
    .btn-search {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Form inputs - Enhanced touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .filter-group input,
    .filter-group select,
    .search-form input,
    .search-form select {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }

    /* Navigation links - Better spacing for touch */
    .nav-menu a,
    .hero-nav-menu a {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* WhatsApp float button - Larger on mobile */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 32px;
    }

    /* Filter toggles and interactive elements */
    .nav-toggle,
    .hero-nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Property cards - Better spacing */
    .property-card .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Increased line spacing for better readability */
    body {
        line-height: 1.7;
    }

    p {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 600px;
    }

    .navbar .container {
        padding: 0.8rem 20px;
    }

    .nav-brand h1 {
        font-size: 1.4rem;
    }

    /* Hero navigation for smaller screens */
    .hero-brand-logo {
        height: 60px;
        width: 60px;
    }

    .hero-nav-brand {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .hero-brand-text h1 {
        font-size: 0.95rem;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-brand-text .tagline {
        display: none; /* Hide tagline on small screens to save space */
    }

    .hero-nav-toggle {
        flex-shrink: 0;
    }

    /* Hero content adjustments for small screens */
    .hero-content {
        bottom: 1rem;
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .search-box {
        padding: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .property-price {
        font-size: 1.5rem;
    }

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

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    background: var(--gold);
    color: var(--primary-navy);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.lang-toggle:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ===== RTL SUPPORT FOR ARABIC ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

[dir="rtl"] .nav-menu {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .nav-menu li {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .lang-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .search-box .search-row {
    direction: rtl;
}

[dir="rtl"] .property-location i,
[dir="rtl"] .feature i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .view-details i {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

[dir="rtl"] .footer-grid {
    text-align: right;
}

[dir="rtl"] .social-links a {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .social-links a:last-child {
    margin-left: 0;
}

[dir="rtl"] .property-badge {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .community-content {
    text-align: right;
}

[dir="rtl"] .service-card ul {
    text-align: right;
}

[dir="rtl"] .service-card ul li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .service-card ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 1rem;
}

/* RTL Mobile Menu */
[dir="rtl"] .nav-menu.active {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        text-align: right;
    }

    [dir="rtl"] .nav-menu li {
        margin-right: 0;
    }

    [dir="rtl"] .lang-toggle {
        margin-right: 0;
        margin-top: 1rem;
    }
}
