/**
 * Serenity Spa Custom Styles
 * Additional styling beyond theme.json
 */

/* ===================================
   Header Enhancements
   =================================== */

.site-header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
    background-color: #FFFFFF;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section .wp-block-cover__inner-container {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax effect for hero */
.hero-section .wp-block-cover__image-background {
    background-attachment: fixed;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wp--preset--color--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===================================
   About Image Enhancement
   =================================== */

.about-image img {
    box-shadow: 20px 20px 0 var(--wp--preset--color--secondary);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* ===================================
   Button Enhancements
   =================================== */

.wp-block-button__link {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 74, 72, 0.3);
}

.wp-block-button .has-accent-background-color:hover {
    background-color: #e5bd3f !important;
}

/* ===================================
   Navigation Link Effects
   =================================== */

.wp-block-navigation-item a {
    position: relative;
}

.wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
    width: 100%;
}

/* ===================================
   Form Styling
   =================================== */

.wp-block-group input[type="text"],
.wp-block-group input[type="email"],
.wp-block-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    font-family: var(--wp--preset--font-family--body);
}

.wp-block-group input[type="text"]:focus,
.wp-block-group input[type="email"]:focus,
.wp-block-group textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    background-color: #fff;
}

.wp-block-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

@media (max-width: 782px) {
    .hero-section h1 {
        font-size: 3rem !important;
    }

    .about-image img {
        box-shadow: 10px 10px 0 var(--wp--preset--color--secondary);
    }

    .wp-block-columns {
        gap: 2rem !important;
    }
}

@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
    }
}

/* ===================================
   Smooth Scrolling
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   Custom Utilities
   =================================== */

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}