:root {
    --gold: #c5a059;
    --charcoal: #1a1a1a;
    --cream: #f9f7f2;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222;
    --text-primary: #f9f7f2;
    --text-secondary: #888;
    --border-color: #222;
    --nav-bg: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    --nav-scroll-bg: #1a1a1a;
    --footer-bg: #111;
    --hero-bg: url('../images/lemy-banner-desktop-dark.png');
}

[data-theme="light"] {
    --bg-primary: #f5f3ef;
    --bg-secondary: #e8e4dc;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --border-color: #ddd;
    --nav-bg: linear-gradient(to bottom, rgba(245,243,239,0.95), transparent);
    --nav-scroll-bg: #f5f3ef;
    --footer-bg: #e8e4dc;
    --hero-bg: url('../images/lemy-banner-desktop-light.png');
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Libre Baskerville', serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

nav.scrolled {
    background: var(--nav-scroll-bg);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold);
    font-style: italic;
    cursor: pointer;
}

.menu-toggle {
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

.desktop-nav-links {
    display: none;
}

.desktop-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-left: 35px;
    transition: var(--transition);
}

.desktop-nav-links a:hover {
    color: var(--gold);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 20px;
}

.theme-toggle-wrapper {
    display: flex;
    gap: 8px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.lang-select {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-primary);
    padding: 5px 10px;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    cursor: pointer;
}

.lang-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

#mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5% 60px;
    transition: var(--transition);
}

#mobile-drawer.active {
    left: 0;
}

.close-drawer {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--gold);
}

.drawer-links a {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    margin: 20px 0;
    letter-spacing: 2px;
    text-align: center;
}

.drawer-footer-actions {
    width: 100%;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.drawer-theme-selector, .drawer-language-selector {
    margin: 15px 0;
}

.theme-label, .lang-label {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.theme-option {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-primary);
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
}

.theme-option.active {
    background: var(--gold);
    color: var(--bg-primary);
}

[data-theme="dark"] .theme-option[data-theme="light"] {
    color: white;
}

[data-theme="light"] .theme-option[data-theme="dark"] {
    color: white;
}

#mobileLangSelect {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-primary);
    padding: 8px 20px;
    width: 100%;
    font-family: 'Libre Baskerville', serif;
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .hero {
        background: url('../images/lemy-banner-mobile-light.png');
        background-size: cover;
        background-position: center;
    }
    
    [data-theme="dark"] .hero {
        background: url('../images/lemy-banner-mobile-dark.svg');
        background-size: cover;
        background-position: center;
    }
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 10vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.hero-content p {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 30px;
}

.btn-luxury {
    padding: 14px 35px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-luxury:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.section-title {
    text-align: center;
    padding: 60px 0 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--gold);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 5% 60px;
}

.card-link {
    text-decoration: none;
    display: block;
}

.card {
    background: var(--bg-secondary);
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: white;
}

.card p {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1px;
}

footer {
    background: var(--footer-bg);
    padding: 60px 5% 30px;
    border-top: 1px solid var(--border-color);
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-col p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin: 10px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.hire-input {
    background: none;
    border: none;
    border-bottom: 1px solid var(--gold);
    color: var(--text-primary);
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    font-family: 'Libre Baskerville', serif;
}

.hire-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.footer-bottom {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-toggle {
        display: none;
    }
    
    .desktop-nav-links {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
    }
    
    .hero {
        height: 100vh;
    }
    
    footer {
        text-align: left;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 50px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 1023px) {
    .logo {
        position: absolute;
        left: 5%;
        transform: none;
    }
    
    .menu-toggle {
        position: relative;
        z-index: 10;
        margin-left: auto;
    }
    
    footer {
        text-align: left;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .footer-col .logo {
        position: relative;
        left: 0;
        margin-bottom: 20px;
        display: inline-block;
    }
}
