/* Pink Magnolia Inn & Event Space - Custom Styles */

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background: #f7a3b8;
    color: #3d0b19;
}

/* Body background pattern */
body {
    background-color: #fefdfb;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(247, 163, 184, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(138, 30, 60, 0.02) 0%, transparent 50%);
}

/* Hero section */
.hero-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Section padding */
section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

/* Service cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(138, 30, 60, 0.15);
}

/* Button primary */
.btn-primary {
    background: linear-gradient(135deg, #a82548 0%, #8a1e3c 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0392b 0%, #a82548 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Button secondary */
.btn-secondary {
    background: transparent;
    border: 2px solid #a82548;
    color: #a82548;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #a82548;
    color: white;
    transform: translateY(-2px);
}

/* Form inputs */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #fce7eb;
}

.form-input:focus {
    border-color: #a82548;
    box-shadow: 0 0 0 4px rgba(168, 37, 72, 0.1);
    outline: none;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Floating petals */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.floating-petal {
    animation: float 4s ease-in-out infinite;
}

.floating-petal:nth-child(2) {
    animation-delay: 1s;
}

.floating-petal:nth-child(3) {
    animation-delay: 2s;
}

/* Gallery items */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Testimonial slider */
.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(138, 30, 60, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #a82548, #f7a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 37, 72, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(168, 37, 72, 0); }
}

.pulse-cta {
    animation: pulse-soft 2s infinite;
}

/* Back to top button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Decorative divider */
.divider-floral {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px auto;
}

.divider-floral::before,
.divider-floral::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, #f7a3b8, transparent);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 11, 25, 0.5);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 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;
    }
}

/* Print styles */
@media print {
    .hero-bg,
    .floating-petal,
    #back-to-top,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
