/* MendesINOV Premium Design System & Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
    /* Premium Curated Brand Palette - Metallic Gold & Rich Deep Stones */
    --primary: #C8AF8E;            /* Warm Champagne Gold */
    --primary-hover: #D8C3A5;      /* Brighter gold for interaction */
    --primary-glow: rgba(200, 175, 142, 0.25);
    
    /* Luxury Dark Mode Colors */
    --bg-dark: #12100E;            /* Super deep warm black */
    --bg-card: #1C1916;            /* Rich stone charcoal card */
    --bg-card-hover: #26221E;      /* Lighter highlight for card hovers */
    --text-main: #F7F5F2;          /* Off-white warm text */
    --text-muted: #A39E98;         /* High-contrast warm gray */
    --border-color: rgba(200, 175, 142, 0.1); /* Subtle gold tint border */
    
    --container-width: 1200px;
    --header-height: 85px;
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant Light Mode Variables */
body.light-mode {
    --bg-dark: #FAF8F5;            /* Soft warm white */
    --bg-card: #FFFFFF;            /* Pure white cards */
    --bg-card-hover: #F3ECE3;      /* Warm bone background */
    --text-main: #24201C;          /* Warm charcoal black */
    --text-muted: #6B6258;         /* Deep warm stone gray */
    --border-color: rgba(166, 141, 109, 0.15);
    --primary: #A68D6D;            /* Darker robust gold for readability */
    --primary-hover: #8D7456;      /* Deep contrast gold hover */
    --primary-glow: rgba(166, 141, 109, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

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

.text-muted {
    color: var(--text-muted);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: var(--primary);
    color: #12100E !important;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
}

body.light-mode .btn {
    color: #FFFFFF !important;
}

.btn:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #12100E !important;
}

body.light-mode .btn-outline:hover {
    color: #FFFFFF !important;
}

/* Glassmorphic Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(18, 16, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

body.light-mode header {
    background: rgba(250, 248, 245, 0.8);
}

header.scrolled {
    height: 70px;
    background: rgba(18, 16, 14, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.light-mode header.scrolled {
    background: rgba(250, 248, 245, 0.96);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 40px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 175, 142, 0.05);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(200, 175, 142, 0.15);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide scaled background overflow */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: heroZoomIn 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 0;
}

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

body.light-mode .hero-overlay {
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.4) 0%, rgba(250, 248, 245, 0.94) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 24px;
}

.hero-subtitle {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

body.light-mode .hero h1 {
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-descr {
    font-size: 1.35rem;
    color: rgba(247, 245, 242, 0.9) !important;
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

body.light-mode .hero-descr {
    color: var(--text-muted) !important;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #12100E !important;
    box-shadow: 0 8px 24px var(--primary-glow);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.hero-btn:hover {
    background: transparent;
    color: #FFFFFF !important;
    border-color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

body.light-mode .hero-btn:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 15px 35px var(--primary-glow);
}

/* Animations */
@keyframes heroZoomIn {
    to {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature/Services Grid & Premium Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.feature-card {
    background: var(--bg-card);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-color: rgba(200, 175, 142, 0.25);
}

body.light-mode .feature-card:hover {
    box-shadow: 0 20px 40px rgba(166, 141, 109, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 28px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 300;
}

/* Split Section (Image & Text) */
.split-section {
    display: flex;
    align-items: center;
    gap: 64px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content,
.split-image {
    flex: 1;
}

.split-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

body.light-mode .split-image img {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

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

.split-content h2 {
    font-size: 2.8rem;
    margin-bottom: 28px;
}

.split-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

/* Footer Section */
footer {
    background: #0B0A09;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
}

body.light-mode footer {
    background: #F4F1EC;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 56px;
}

.footer-item h4 {
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-item ul li {
    margin-bottom: 14px;
}

.footer-item ul li a {
    color: var(--text-muted);
    font-weight: 300;
}

.footer-item ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-item p {
    font-weight: 300;
}

.footer-item ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Page Headers */
.page-header {
    background: radial-gradient(circle at top right, rgba(200, 175, 142, 0.08) 0%, rgba(18, 16, 14, 0) 65%), 
                linear-gradient(135deg, #1C1916 0%, #12100E 100%);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

body.light-mode .page-header {
    background: radial-gradient(circle at top right, rgba(166, 141, 109, 0.08) 0%, rgba(250, 248, 245, 0) 65%), 
                linear-gradient(135deg, #FFFFFF 0%, #F5EFE6 100%);
}


.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* Custom Interactive Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(200, 175, 142, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    margin-bottom: 24px;
    font-family: inherit;
    font-size: 0.98rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(200, 175, 142, 0.08);
    box-shadow: 0 0 12px rgba(200, 175, 142, 0.15);
}

/* GLightbox Override */
.glightbox img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Toast Notifications styling */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-main);
    padding: 16px 28px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

/* Admin Dashboard CSS Styles */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.admin-card:hover {
    border-color: rgba(200, 175, 142, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(200, 175, 142, 0.02);
}

.admin-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.admin-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.btn-danger {
    background: #EF4444;
    border-color: #EF4444;
    color: white !important;
}

.btn-danger:hover {
    background: transparent;
    color: #EF4444 !important;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
}

/* Mobile Responsive System */
@media (max-width: 992px) {
    .split-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .split-section.reverse {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 40px 20px;
        transform: translateY(-150%);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}