/* ==========================================================================
   Ultra-Premium CSS Variables & Tokens
   ========================================================================== */
:root {
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --bg-glass: rgba(26, 26, 26, 0.6);
    
    /* Rose Gold / Platinum Palette */
    --color-primary: #C5A059;
    --color-primary-hover: #D8B572;
    --color-primary-dim: rgba(197, 160, 89, 0.2);
    
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.rose-gold {
    color: var(--color-primary);
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    margin-bottom: 80px;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title p {
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0; /* Sharp edges for luxury */
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--text-main);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    color: #000;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #000;
}

/* ==========================================================================
   Glassmorphic Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    color: var(--text-main);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section (Premium Photo Background)
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1599351431202-1e0f0137899a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Services Section (Asymmetrical Grid)
   ========================================================================== */
.services {
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px; /* creates a thin line between items if background is lighter */
    background: rgba(255,255,255,0.05); /* thin lines */
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card {
    background: var(--bg-card);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.8s ease;
    transform: scale(1.05);
    z-index: 0;
}

.service-card:nth-child(1) .service-bg { background-image: url('https://images.unsplash.com/photo-1621605815971-fbc98d665033?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.service-card:nth-child(2) .service-bg { background-image: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.service-card:nth-child(3) .service-bg { background-image: url('../assets/images/sac-bakimi.png'); }

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17,17,17,0.85);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

.service-card:hover .service-bg {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary-dim);
    margin-bottom: 20px;
    line-height: 1;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.service-card .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* ==========================================================================
   About Section (Magazine Layout)
   ========================================================================== */
.about {
    background-color: var(--bg-card);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding-bottom: 130%; /* Portrait aspect ratio */
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--bg-dark);
    border: 1px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 3;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 300;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 40px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-dark);
}

.contact-wrapper {
    display: flex;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info-panel {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    margin-bottom: 40px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h4 {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.info-block p {
    font-size: 1.2rem;
    color: var(--text-main);
}

.map-panel {
    flex: 1;
    position: relative;
    min-height: 500px;
}

.map-panel iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    filter: grayscale(100%) invert(90%) contrast(80%); /* Dark mode map effect */
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #080808;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-muted);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Floating WhatsApp (Modern)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 0 0 4px #111111, inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 99999;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 0 0 4px #111111, inset 0 0 0 5px rgba(255, 255, 255, 0.5);
}

.floating-whatsapp:hover {
    background-color: #ffffff;
    color: #111111;
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22), inset 0 0 0 4px #ffffff, inset 0 0 0 5px rgba(17, 17, 17, 0.5);
}

/* --- mobile override inside the 768px block is below --- *//* ==========================================================================
   Animations & Observers
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .experience-badge {
        right: 20px;
        bottom: -20px;
        width: 120px;
        height: 120px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero { background-attachment: scroll; background-position: center top; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }
    
    .menu-toggle { display: flex; z-index: 1002; }
    
    /* Hamburger to X Animation */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
        z-index: 1000;
        gap: 20px;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        font-size: 1.4rem;
        padding: 10px;
        display: block;
    }
    
    .navbar .btn-outline { display: none; }
    
    /* Section and Typography Optimizations */
    .section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 0.85rem; }
    
    /* Mobile Reveal Optimization */
    .reveal { transform: translateY(30px); }
    
    /* Service Cards Touch Fixes */
    .service-bg { opacity: 0.35; transform: scale(1); } /* Always partially visible on mobile */
    .service-card::after { opacity: 0.6; }
    .service-card { padding: 40px 25px; min-height: 280px; }
    .service-number { font-size: 2.5rem; margin-bottom: 15px; }
    .service-card h3 { font-size: 1.5rem; }
    
    /* About Section Fixes */
    .about-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
    .about-text p { font-size: 0.95rem; margin-bottom: 15px; }
    
    /* Editorials/Price list adjustments */
    .editorial-container { padding: 0; margin-bottom: 30px; gap: 30px; }
    .editorial-image-wrapper { min-height: 350px; }
    .editorial-title, .editorial-price { font-size: 1.2rem; }
    .editorial-item { margin-bottom: 20px; }
    
    .appointment-box { padding: 30px 20px; }
    .appointment-box h3 { font-size: 1.5rem; }
    
    .floating-whatsapp {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 24px;
        z-index: 99999 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Nav Actions & Social */
.nav-actions { display: flex; align-items: center; gap: 15px; }
.nav-social { color: var(--text-main); display: flex; align-items: center; transition: color 0.3s ease, transform 0.3s ease; }
.nav-social:hover { color: var(--color-primary); transform: scale(1.1); }
.mobile-action { display: none; }
@media (max-width: 768px) { .mobile-action { display: block; } .nav-actions .btn { display: none; } }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox Styles */
.lightbox { display: none; position: fixed; z-index: 999999; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; flex-direction: column; }
.lightbox.show { opacity: 1; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform: scale(0.8); transition: transform 0.3s ease; }
.lightbox.show .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--color-primary); }
.gallery-item { cursor: pointer; }

.lightbox-prev, .lightbox-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 40px; transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none; z-index: 9999999; }
.lightbox-next { right: 5%; border-radius: 3px 0 0 3px; }
.lightbox-prev { left: 5%; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--color-primary); }
