/* ========================================
   Massage Elite — Custom Styles
   Warm plum + amber palette
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelay {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: floatDelay 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger children */
.scroll-reveal.revealed > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-reveal.revealed > *:nth-child(1) { animation-delay: 0.1s; }
.scroll-reveal.revealed > *:nth-child(2) { animation-delay: 0.2s; }
.scroll-reveal.revealed > *:nth-child(3) { animation-delay: 0.3s; }
.scroll-reveal.revealed > *:nth-child(4) { animation-delay: 0.4s; }
.scroll-reveal.revealed > *:nth-child(5) { animation-delay: 0.5s; }
.scroll-reveal.revealed > *:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffa517 0%, #f58705 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(255, 165, 23, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 165, 23, 0.5);
    background: linear-gradient(135deg, #ffbd3f 0%, #ffa517 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ========================================
   Navigation
   ======================================== */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffa517, #ffd36d);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #ffa517 !important;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(159, 29, 70, 0.1);
}

.nav-scrolled .nav-link {
    color: #6e1739 !important;
}

.nav-scrolled .logo-text {
    color: #6e1739 !important;
}

/* Mobile menu */
#mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: rgba(159, 29, 70, 0.08);
    padding-left: 24px;
}

/* ========================================
   Service Cards
   ======================================== */

.service-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ========================================
   Form Styles
   ======================================== */

input:focus,
select:focus,
textarea:focus {
    background: #fff !important;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    #hero h1 {
        font-size: 2.5rem !important;
    }
    
    #hero h1 span {
        font-size: 1.75rem !important;
    }
}

/* ========================================
   Selection Color
   ======================================== */

::selection {
    background: rgba(159, 29, 70, 0.2);
    color: #3d071c;
}

/* ========================================
   Focus Visible
   ======================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffa517;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .btn-primary,
    .btn-secondary {
        background: #9f1d46 !important;
        color: #fff !important;
    }
}
