/* 
 * Agence KaRach immobilière - Premium Stylesheet
 */

:root {
    /* Color Palette - Dark & Gold Theme for Premium feel */
    --primary-color: #0b1120; /* Deep navy/almost black */
    --secondary-color: #1a2235; /* Lighter navy */
    --accent-color: #d4af37; /* Gold / Luxury */
    --accent-hover: #f3c220;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dark: #0f172a;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1280px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-whatsapp-outline {
    border-color: #25D366;
    color: #25D366;
    padding: 8px 20px;
    background: transparent;
}
.btn-whatsapp-outline:hover {
    background-color: #25D366;
    color: white;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: padding var(--transition-fast), background-color var(--transition-fast);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    gap: 5px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-ka { color: var(--white); }
.logo-immo { color: var(--accent-color); }

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}
.nav-list a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 2000;
    padding: 80px 30px;
    transition: right var(--transition-slow);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-list a {
    color: var(--white);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Floating WhatsApp */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-secondary);
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-desc {
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.contact-list i {
    color: var(--accent-color);
    margin-top: 4px;
}
.contact-list a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}
.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.admin-link {
    color: var(--text-secondary);
}
.admin-link:hover {
    color: var(--accent-color);
}

/* =========================================
   RESPONSIVE DESIGN (Base)
   ========================================= */
@media (max-width: 992px) {
    .nav-list, .btn-whatsapp-outline { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
