/* ============================================
   Eloxie Salon & Boutique — Custom Styles
   ============================================ */

/* Custom Properties */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --blush: #C46A7A;
    --blush-light: #F2D4D8;
    --blush-dark: #A85563;
    --font-playfair: 'Playfair Display', Georgia, serif;
    --font-montserrat: 'Montserrat', -apple-system, sans-serif;
}

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-montserrat);
    overflow-x: hidden;
}

.font-playfair {
    font-family: var(--font-playfair);
}

.font-montserrat {
    font-family: var(--font-montserrat);
}

/* Color Utilities */
.bg-burgundy { background-color: var(--burgundy); }
.bg-burgundy-dark { background-color: var(--burgundy-dark); }
.bg-blush { background-color: var(--blush); }
.bg-blush-light { background-color: var(--blush-light); }
.bg-blush-dark { background-color: var(--blush-dark); }
.text-burgundy { color: var(--burgundy); }
.text-blush { color: var(--blush); }

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #1a1a1a;
}

#navbar.scrolled .nav-logo-text {
    color: #1a1a1a;
}

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(-100%);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger Animation */
#mobile-menu-btn.active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--blush);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: white;
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--blush-dark);
    top: 30%;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: var(--blush);
    bottom: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: white;
    top: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid var(--blush);
    top: 60%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--blush) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.5;
    bottom: 25%;
    left: 8%;
    animation: float 9s ease-in-out infinite reverse;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Selection */
::selection {
    background: var(--blush-light);
    color: var(--burgundy);
}

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

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--blush);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy);
}

/* Focus Styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Service Card Hover */
.group:hover .group-hover\\:bg-burgundy {
    background-color: var(--burgundy);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
