/* ===========================
   NYX PROPERTIES - SHARED STYLES
   =========================== */

/* CSS Variables */
:root {
    --nyx-taupe: #B8A78F;
    --nyx-cream: #F5F2ED;
    --nyx-dark: #2C2416;
    --nyx-gold: #C9A96E;
    --nyx-white: #FFFFFF;
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--nyx-dark);
    background: var(--nyx-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   HEADER
   =========================== */
.nyx-header {
    background: var(--nyx-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(184, 167, 143, 0.15);
}

.nyx-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(44, 36, 22, 0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--nyx-taupe);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo-container:hover .logo-text {
    color: var(--nyx-gold);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 45px;
    align-items: center;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--nyx-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--nyx-taupe);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--nyx-taupe);
}

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

/* Header CTA Button */
.header-cta .contact-btn {
    padding: 12px 30px;
    background: var(--nyx-taupe);
    color: var(--nyx-white);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--nyx-taupe);
    transition: all 0.3s ease;
}

.header-cta .contact-btn:hover {
    background: transparent;
    color: var(--nyx-taupe);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--nyx-dark);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--nyx-white);
    padding: 20px 40px;
    box-shadow: 0 10px 30px rgba(44, 36, 22, 0.1);
    z-index: 9998;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--nyx-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(184, 167, 143, 0.2);
    transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--nyx-taupe);
}

/* ===========================
   COMMON SECTIONS
   =========================== */
.content-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 52px;
    font-weight: 300;
    color: var(--nyx-dark);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: var(--nyx-taupe);
    font-style: italic;
    text-align: center;
    margin-bottom: 60px;
}

/* Page Hero (for inner pages) */
.page-hero {
    margin-top: 90px;
    background: linear-gradient(135deg, var(--nyx-dark) 0%, #4a3d28 100%);
    padding: 100px 40px;
    text-align: center;
    color: var(--nyx-white);
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 20px;
    color: var(--nyx-taupe);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    background: var(--nyx-taupe);
    color: var(--nyx-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid var(--nyx-taupe);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--nyx-taupe);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 167, 143, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: var(--nyx-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid var(--nyx-white);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--nyx-white);
    color: var(--nyx-dark);
    transform: translateY(-3px);
}

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */
.nyx-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
}

.nyx-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.nyx-whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ===========================
   MOBILE STICKY CALL BAR
   =========================== */
.nyx-mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2C2416 0%, #3d342a 100%);
    padding: 15px 20px;
    display: none;
    z-index: 9997;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease;
}

.mobile-call-container {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-call-btn,
.mobile-whatsapp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mobile-call-btn {
    background: var(--nyx-taupe);
    color: white;
}

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

/* ===========================
   FOOTER
   =========================== */
.nyx-footer {
    background: linear-gradient(135deg, #2C2416 0%, #3d342a 100%);
    color: var(--nyx-cream);
    padding: 80px 0 0;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(184, 167, 143, 0.2);
}

.footer-logo-text {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--nyx-cream);
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--nyx-cream);
    font-style: italic;
    opacity: 0.9;
    max-width: 350px;
    margin-top: 25px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--nyx-taupe);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--nyx-cream);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--nyx-taupe);
    padding-left: 10px;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(245, 242, 237, 0.7);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(245, 242, 237, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom-links span {
    color: rgba(245, 242, 237, 0.4);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(184, 167, 143, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--nyx-gold);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--nyx-cream);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
    .main-nav,
    .header-cta,
    #google_translate_element {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-container {
        padding: 0 20px;
    }

    .logo-img { height: 40px; width: auto; }
    .site-header .logo-img { height: 40px; width: auto; }
    .site-header .header-content { padding: 0 20px; }
    .site-header .main-nav-left, .site-header .main-nav-right { display: none; }
    .site-header .logo-img-link { padding: 8px 0; }
    .mobile-menu-toggle { display: block; }
    .mobile-projects-link { display: inline-block; }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .page-hero h1 {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .content-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .nyx-mobile-call-bar {
        display: block;
    }
    
    .nyx-whatsapp-float {
        bottom: 90px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 32px;
    }
    
    .page-hero {
        padding: 60px 20px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* ===========================
   GOOGLE TRANSLATE OVERRIDES
   =========================== */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element select {
    background: #fff;
    border: 1px solid var(--nyx-taupe);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--nyx-dark);
    cursor: pointer;
}

/* ===========================
   LOGO IMAGE (replaces text wordmark)
   =========================== */
.logo-img-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    padding: 10px 20px;
}
.logo-img {
    display: block;
    height: 62px;
    width: auto;
    transition: opacity 0.3s ease;
}
.logo-img-link:hover .logo-img { opacity: 0.85; }

.logo-tagline {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--nyx-taupe);
    opacity: 0.8;
    margin-top: 2px;
    font-style: italic;
    transition: opacity 0.3s ease;
}
.nyx-header.scrolled .logo-tagline {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* ===========================
   SITE-HEADER (centred 3-col grid — projects, xenia, calla)
   =========================== */
.site-header {
    background: #fff;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(184,167,143,0.15);
    transition: all 0.4s ease;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 30px rgba(44,36,22,0.08);
}
.site-header .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 90px;
}
.site-header .main-nav { margin: 0; }
.site-header .main-nav-left { justify-content: flex-end; gap: 45px; display: flex; }
.site-header .main-nav-right { justify-content: flex-start; gap: 45px; display: flex; }
.site-header .logo-img-link { justify-self: center; padding: 12px 40px; }
.site-header .logo-img { height: 62px; width: auto; }
.site-header .cta-button { display: none; }

/* ===========================
   MOBILE MENU TOGGLE (☰ version)
   =========================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: var(--nyx-dark);
    line-height: 1;
}

/* ===========================
   MOBILE NAV BACKDROP
   =========================== */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44,36,22,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 9998;
}
.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}
body.mobile-nav-open { overflow: hidden; }

/* ===========================
   MOBILE PROJECTS LINK (header shortcut on small screens)
   =========================== */
.mobile-projects-link {
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--nyx-dark);
    text-decoration: none;
    padding: 8px 14px;
    border-bottom: 1px solid var(--nyx-taupe);
    transition: color 0.2s ease;
}
.mobile-projects-link:hover,
.mobile-projects-link:focus { color: var(--nyx-taupe); }

/* ===========================
   GOOGLE TRANSLATE WIDGET
   =========================== */
#google_translate_element { display: inline-flex; align-items: center; }
#google_translate_element select {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nyx-dark);
    background: transparent;
    border: 1px solid rgba(184,167,143,0.4);
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
#google_translate_element select:hover { border-color: var(--nyx-gold); }
.goog-te-banner-frame { display: none !important; }
.goog-te-balloon-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget select { margin: 0 !important; }

/* ===========================
   RESPONSIVE — additions
   =========================== */
@media (max-width: 768px) {
    .logo-img { height: 36px; width: auto; }
    .site-header .header-content {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }
    .site-header .main-nav-left,
    .site-header .main-nav-right { display: none; }
    .site-header .logo-img { height: 36px; width: auto; }
    .site-header .logo-img-link { padding: 8px 0; }
    .mobile-menu-toggle { display: block; }
    .mobile-projects-link { display: inline-block; }
}
