/* VITALIS IV - Optimized Styles */

/* Dark Reader Override */
html[data-darkreader-mode],
html[data-darkreader-scheme],
html[data-darkreader-inline] {
    color-scheme: only light !important;
}

*:not(.marble-background) {
    -webkit-filter: none !important;
    filter: none !important;
}

body[data-darkreader-mode],
body[data-darkreader-scheme] {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* CSS Variables */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gold: #d4af37;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
}

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

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

/* Marble Background */
.marble-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/marble-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(1.1) brightness(1.05);
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* Typography */
.display-1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
}

.display-3 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
}

.heading-2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
}

.heading-3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.body-large {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.body-base {
    font-size: 1rem;
    line-height: 1.6;
}

.body-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Text Colors */
.text-gold {
    color: var(--color-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-white { color: var(--color-white); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: #6b7280; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-16) 0;
}

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

/* Grid */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
}

.grid-3 > * {
    max-width: 400px;
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--space-4) 0;
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-gold);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--space-16) + 80px) 0 var(--space-16) 0;
}

.hero-content {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tagline {
    margin: var(--space-6) 0 var(--space-8);
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
}

/* Cards */
.card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-luxury {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Treatment Menu Styles */
.category-header {
    text-align: center;
    margin: var(--space-16) 0 var(--space-8);
    padding: var(--space-8);
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.category-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.category-description {
    font-size: 1.1rem;
    color: var(--color-gray-300);
    line-height: 1.6;
}

.treatment-item {
    margin-bottom: var(--space-4);
}

.treatment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.treatment-header:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(212, 175, 55, 0.5);
}

.treatment-main {
    flex: 1;
}

.treatment-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.treatment-summary {
    font-size: 0.95rem;
    color: var(--color-gray-300);
}

.treatment-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin: 0 var(--space-6);
}

.details-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-gold);
    cursor: pointer;
    transition: var(--transition);
}

.details-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.treatment-details {
    display: none;
    padding: var(--space-6);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.treatment-details.active {
    display: block;
}

.details-section {
    margin-bottom: var(--space-6);
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.details-text {
    font-size: 1rem;
    color: var(--color-gray-300);
    line-height: 1.7;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    padding: 0.5rem 0;
    color: var(--color-gray-300);
    line-height: 1.6;
}

.ingredient-list li strong {
    color: var(--color-gold);
}

/* About Section */
.about-text-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
}

.about-text-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-300);
    margin-bottom: var(--space-6);
}

.about-text-box p:last-child {
    margin-bottom: 0;
}

/* Complete Menu Animation */
#complete-menu {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

#complete-menu.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 10000px;
}

/* Luxury Serif Font */
.luxury-serif {
    font-family: var(--font-serif);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .treatment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .treatment-price {
        margin: 0;
    }
    
    .details-btn {
        align-self: flex-end;
    }
}
