/* ============================================
   Flawless Designs Salon — Custom Styles
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --burgundy-950: #410717;
    --burgundy-900: #711736;
    --burgundy-800: #84163a;
    --burgundy-700: #a11640;
    --burgundy-600: #c22050;
    --burgundy-500: #db3b6a;
    --blush-200: #f9cdd8;
    --blush-100: #fce7eb;
    --cream-50: #fefcfb;
}

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-950);
}

/* ---- Navbar ---- */
.nav-logo-text {
    color: #fff;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #f9cdd8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scroll state for navbar */
.navbar-scrolled .nav-logo-text {
    color: #711736;
}

.navbar-scrolled .nav-link {
    color: rgba(65, 7, 23, 0.7);
}

.navbar-scrolled .nav-link:hover {
    color: #410717;
}

.navbar-scrolled .nav-link::after {
    background: #c22050;
}

.navbar-scrolled .hamburger-line {
    background: #711736;
}

/* ---- Section Labels ---- */
.section-label {
    letter-spacing: 0.15em;
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Gallery ---- */
.gallery-item {
    cursor: pointer;
}

/* ---- Testimonials ---- */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Hero Animations ---- */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    animation-delay: 0s;
}

.hero-orb-2 {
    animation-delay: -3s;
}

.hero-orb-3 {
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card-1 {
    animation-delay: 0s;
}

.floating-card-2 {
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-15px); }
}

.floating-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
}

@keyframes floatCard2 {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-12px); }
}

/* ---- Mobile Menu ---- */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-link:nth-child(6) { transition-delay: 0.35s; }

/* ---- Hamburger Animation ---- */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobileMenuBtn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobileMenuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ---- Scroll Reveal (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ---- Form Styles ---- */
select option {
    color: #711736;
}

select option[value=""] {
    color: #f9a8c4;
}

/* ---- Back to Top Button ---- */
#backToTop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}
