:root {
    --primary-color: #AA8C59;
    --primary-dark: #8a7044;
    --secondary-color: #343433;
    --secondary-light: #4a4a49;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 0;
}

.navbar-brand img {
    height: 42px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .navbar-brand img {
    height: 36px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(170, 140, 89, 0.4);
}

.btn-outline-light {
    border-radius: 0;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section Redesign */
#hero {
    overflow: hidden;
    background: #000;
}

/* Ken Burns Effect Animation */
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}

.carousel-item.active .hero-bg {
    animation: kenBurns 8s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.88) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    padding-bottom: 3rem;
}

.carousel-caption h1 {
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
    line-height: 1.15;
}

.carousel-caption h5 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carousel-caption p.lead {
    color: rgba(255,255,255,0.9) !important;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.text-stroke {
    color: var(--primary-color) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 20px rgba(170, 140, 89, 0.4);
}

/* Entrance Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.carousel-item.active .animate-slide-down {
    animation: slideDown 1s ease-out 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .animate-fade-in {
    animation: fadeIn 1.5s ease-out 0.6s forwards;
    opacity: 0;
}

/* Custom Navigation */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 40%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1);
}

.carousel-indicators [data-bs-target] {
    width: 40px;
    height: 3px;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-color);
    width: 60px;
}

/* General Sections */
.section-padding {
    padding: 120px 0;
}

/* Typography Enhancements */
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
}

.display-1 { font-weight: 700; letter-spacing: -1px; }
.display-5 { font-weight: 700; letter-spacing: -0.5px; }

/* About Section */
.about-img {
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

/* Property Cards */
.property-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge {
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 0;
}

/* Service Cards */
.service-card {
    background-color: #fff;
    transition: all 0.3s ease;
    border-color: #eee !important;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(170, 140, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: #fff;
}

.service-card:hover .icon-box i {
    color: #fff; /* Ensure icon turns white */
}
/* This specific selector might be needed if fontawesome sets color directly */
.service-card:hover .icon-box .text-primary-custom {
    color: #fff !important;
}

/* Why Choose Us */
.bg-dark {
    background-color: var(--secondary-color) !important;
}

/* Testimonials */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    padding: 1.5rem;
    background-size: 50%;
}

/* Partners */
.partner-logos {
    gap: 0;
}

.partner-logos .col-6,
.partner-logos .col-md-2 {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
    filter: grayscale(60%);
}

.partner-logos .col-6:hover,
.partner-logos .col-md-2:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

.partner-icon {
    display: block;
    margin-bottom: 4px;
}

.partner-text-logo {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.partner-name {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
}

/* Contact Section Redesign */
#contact {
    background: url('../assets/images/bg1.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-icon-wrapper {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(170, 140, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover .contact-icon-wrapper {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.contact-link {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer Redesign */
footer {
    background-color: #0b0b0b;
}

.footer-brand {
    font-size: 2rem;
    letter-spacing: 2px;
}

.footer-brand img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.input-underlined {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
    color: #fff;
    padding: 10px 0;
}

.input-underlined:focus {
    background: transparent;
    border-bottom-color: var(--primary-color);
    box-shadow: none;
    color: #fff;
}

.btn-subscribe {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Promotion Badges */
.promo-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-badge.premium {
    background: linear-gradient(135deg, #6B21A8, #9333EA);
    color: #fff;
}

.promo-badge.gold {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: #fff;
}

.promo-badge.promoted {
    background: linear-gradient(135deg, #0891B2, #06B6D4);
    color: #fff;
}

.promo-badge.featured {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #fff;
}

/* Z-Index Utility */
.z-1 { z-index: 1; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .navbar {
        background-color: var(--secondary-color);
        padding: 1rem 0;
    }
}
