/* ==========================================================================
   Amatak Innovest | Luxury Hospitality Management & Consulting
   Custom Stylesheet (css/style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theme Definitions
   -------------------------------------------------------------------------- */
:root {
    --color-brand-dark: #023b31;
    --color-brand-deep: #062620;
    --color-brand-card: #0b352e;
    --color-brand-gold: #d4af37;
    --color-brand-gold-light: #f3e5ab;
    --color-brand-accent: #65832d;
    --color-brand-accent-hover: #769835;
    --color-text-main: #f3f4f6;
    --color-text-muted: #d1d5db;
    --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.25);
}

/* Light Mode Overrides */
html:not(.dark) {
    --color-brand-dark: #f8faf9;
    --color-brand-deep: #ffffff;
    --color-brand-card: #ffffff;
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
}

html:not(.dark) body {
    background-color: #f7f9f8;
    color: #1f2937;
}

html:not(.dark) header#navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

html:not(.dark) #navbar nav a {
    color: #1f2937;
}

html:not(.dark) #navbar nav a:hover {
    color: #b58d17;
}

html:not(.dark) #navbar .font-serif.text-white {
    color: #023b31;
}

html:not(.dark) #services,
html:not(.dark) #csr,
html:not(.dark) footer {
    background-color: #f0f4f2;
}

html:not(.dark) #properties,
html:not(.dark) #contact {
    background-color: #f8faf9;
}

html:not(.dark) .property-card,
html:not(.dark) #services .bg-\[\#0b352e\],
html:not(.dark) #contact .bg-\[\#062620\] {
    background-color: #ffffff;
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html:not(.dark) h1.text-white,
html:not(.dark) h2.text-white,
html:not(.dark) h3.text-white,
html:not(.dark) h4.text-white {
    color: #062620 !important;
}

html:not(.dark) p.text-gray-300,
html:not(.dark) p.text-gray-400,
html:not(.dark) span.text-gray-400,
html:not(.dark) .text-gray-200 {
    color: #4b5563 !important;
}

html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
    background-color: #fbfcfc !important;
    color: #111827 !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}

html:not(.dark) #mobile-menu {
    background-color: #ffffff;
    color: #1f2937;
}

html:not(.dark) #mobile-menu a {
    color: #1f2937;
}

html:not(.dark) #property-modal > div,
html:not(.dark) #about-modal > div,
html:not(.dark) #legal-modal > div,
html:not(.dark) #message-box > div {
    background-color: #ffffff;
    border-color: #d4af37;
    color: #1f2937;
}

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

/* --------------------------------------------------------------------------
   Typography & Gradients
   -------------------------------------------------------------------------- */
.gold-gradient-text {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa820a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold-gradient-bg {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
}

.gold-gradient-bg:hover {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
}

.gold-border {
    border-color: rgba(212, 175, 55, 0.3);
}

.gold-border:hover {
    border-color: rgba(212, 175, 55, 0.8);
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #023b31;
}

html:not(.dark) ::-webkit-scrollbar-track {
    background: #f0f4f2;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aa820a;
}

/* --------------------------------------------------------------------------
   Cards, Transitions & Hover Effects
   -------------------------------------------------------------------------- */
.property-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
}

.hero-slide {
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot {
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Forms & Feedback
   -------------------------------------------------------------------------- */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Container */
#toast-container {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Fallback Logo Monogram */
.logo-badge {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
