/**
 * Neutral Hub Theme — Colour Palette + Dynamic Hub Styles
 *
 * Warm greys and amber for the root homepage and non-service pages.
 * Scoped to body.service-neutral so tokens only apply outside service trees.
 *
 * @package MaxMcDermott
 * @since 1.1.0
 */

body.service-neutral {
    /* Raw neutral palette */
    --mm-raw-primary-deep:  #3D2B1F;
    --mm-raw-primary:       #8B6914;
    --mm-raw-primary-light: #C49A28;
    --mm-raw-primary-pale:  #E8D5A3;
    --mm-raw-primary-mist:  #F5EDD8;
    --mm-raw-accent:        #D4860A;
    --mm-raw-accent-light:  #E8A83C;
    --mm-raw-bg:            #FAF7F2;
    --mm-raw-bg-alt:        #F2ECE0;
    --mm-raw-text:          #2A2520;
    --mm-raw-text-light:    #5C5248;
    --mm-raw-white:         #FDFAF5;

    /* Semantic remapping */
    --mm-primary:           var(--mm-raw-primary);
    --mm-primary-hover:     var(--mm-raw-primary-light);
    --mm-accent:            var(--mm-raw-accent);
    --mm-bg:                var(--mm-raw-bg);
    --mm-bg-alt:            var(--mm-raw-bg-alt);
    --mm-text:              var(--mm-raw-text);
    --mm-text-light:        var(--mm-raw-text-light);
    --mm-text-on-dark:      var(--mm-raw-white);
    --mm-shadow-sm:         0 2px 8px rgba(61, 43, 31, 0.08);
    --mm-shadow-md:         0 4px 20px rgba(61, 43, 31, 0.12);
    --mm-shadow-lg:         0 8px 40px rgba(61, 43, 31, 0.16);
}

/* =====================================================================
   Hub Hero — Video + Multi-Layer Parallax
   ===================================================================== */

body.service-neutral .hub-hero {
    position: relative;
    overflow: hidden;
    background: #1a1510;
}

/* Video Background */
body.service-neutral .hub-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.service-neutral .hub-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

body.service-neutral .hub-hero__video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 21, 16, 0.6) 0%, rgba(26, 21, 16, 0.2) 40%, rgba(26, 21, 16, 0.7) 100%),
        linear-gradient(135deg, rgba(61, 43, 31, 0.4) 0%, transparent 50%, rgba(139, 105, 20, 0.3) 100%);
}

/* Animated gradient orbs */
body.service-neutral .hub-hero__orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

body.service-neutral .hub-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    will-change: transform;
}

body.service-neutral .hub-hero__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #C49A28 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

body.service-neutral .hub-hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #D4860A 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

body.service-neutral .hub-hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #E8A83C 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orbFloat3 10s ease-in-out infinite;
}

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

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { transform: translate(-30px, 20px) scale(1.2); opacity: 0.35; }
}

/* Floating particles */
body.service-neutral .hub-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

body.service-neutral .hub-hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(232, 168, 60, 0.5);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

body.service-neutral .hub-hero__particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
body.service-neutral .hub-hero__particle:nth-child(2) { left: 25%; top: 60%; animation-delay: -1s; animation-duration: 9s; width: 3px; height: 3px; }
body.service-neutral .hub-hero__particle:nth-child(3) { left: 50%; top: 30%; animation-delay: -2s; animation-duration: 6s; width: 5px; height: 5px; }
body.service-neutral .hub-hero__particle:nth-child(4) { left: 70%; top: 70%; animation-delay: -3s; animation-duration: 11s; }
body.service-neutral .hub-hero__particle:nth-child(5) { left: 85%; top: 25%; animation-delay: -4s; animation-duration: 8s; width: 3px; height: 3px; }
body.service-neutral .hub-hero__particle:nth-child(6) { left: 40%; top: 80%; animation-delay: -5s; animation-duration: 10s; width: 6px; height: 6px; opacity: 0.3; }
body.service-neutral .hub-hero__particle:nth-child(7) { left: 60%; top: 15%; animation-delay: -6s; animation-duration: 7.5s; }
body.service-neutral .hub-hero__particle:nth-child(8) { left: 15%; top: 45%; animation-delay: -7s; animation-duration: 9.5s; width: 5px; height: 5px; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(15px, -25px) scale(1.3); opacity: 0.7; }
    50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.3; }
    75% { transform: translate(20px, -30px) scale(1.1); opacity: 0.6; }
}

/* Diagonal decorative lines */
body.service-neutral .hub-hero__lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

body.service-neutral .hub-hero__lines span {
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(180deg, transparent, rgba(232, 168, 60, 0.15), transparent);
    transform: rotate(25deg);
    transform-origin: top left;
}

body.service-neutral .hub-hero__lines span:nth-child(1) { left: 20%; top: -20%; animation: lineShimmer 4s ease-in-out infinite; }
body.service-neutral .hub-hero__lines span:nth-child(2) { left: 55%; top: -30%; animation: lineShimmer 5s ease-in-out 1s infinite; }
body.service-neutral .hub-hero__lines span:nth-child(3) { left: 80%; top: -10%; animation: lineShimmer 6s ease-in-out 2s infinite; }

@keyframes lineShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Hero content animations */
body.service-neutral .hub-hero__content {
    position: relative;
    z-index: 3;
}

body.service-neutral .hub-hero__badge {
    animation: badgeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

body.service-neutral .hub-hero__title-line {
    display: block;
    overflow: hidden;
}

body.service-neutral .hub-hero__title-line--1 {
    animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

body.service-neutral .hub-hero__title-line--2 {
    animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

body.service-neutral .hub-hero__tagline {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

body.service-neutral .hub-hero__cta {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes badgeSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

/* Glow button effect */
body.service-neutral .mm-btn--glow {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.service-neutral .mm-btn--glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(232, 168, 60, 0.4), transparent, rgba(196, 154, 40, 0.4));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

body.service-neutral .mm-btn--glow:hover::before {
    opacity: 1;
}

/* Scroll indicator */
body.service-neutral .hub-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

body.service-neutral .hub-hero__scroll span {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(253, 250, 245, 0.4);
    border-radius: 12px;
    position: relative;
}

body.service-neutral .hub-hero__scroll span::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: rgba(253, 250, 245, 0.6);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.2; }
}

/* Scrolled header — warm brown */
body.service-neutral .site-header--scrolled {
    background: rgba(61, 43, 31, 0.95);
}

/* =====================================================================
   CTA Button Particle Burst
   ===================================================================== */

.burst-particle {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    animation: burstOut 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Grass clippings — thin irregular blades */
.burst-particle--grass {
    border-radius: 1px;
    transform-origin: center;
}

/* Soapy bubbles — translucent circles with highlight */
.burst-particle--bubble {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(190, 218, 245, 0.4) 40%, rgba(37, 99, 168, 0.15) 70%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 -2px 4px rgba(37, 99, 168, 0.1), 0 0 8px rgba(190, 218, 245, 0.3);
}

@keyframes burstOut {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    60% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.3);
        opacity: 0;
    }
}

/* =====================================================================
   Marquee — Rolling trust strip
   ===================================================================== */

.hub-marquee {
    background: var(--mm-raw-primary-deep, #3D2B1F);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.hub-marquee__track {
    display: inline-flex;
    animation: marqueeScroll 25s linear infinite;
}

.hub-marquee__item {
    font-family: var(--mm-font-display, 'Outfit', sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mm-raw-accent-light, #E8A83C);
    padding: 0 1.5rem;
}

.hub-marquee__dot {
    color: rgba(232, 168, 60, 0.3);
    font-size: 0.75rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================================
   Service Showcase — Interactive Cards with Tilt
   ===================================================================== */

body.service-neutral .showcase__header {
    text-align: center;
    margin-bottom: 3rem;
}

body.service-neutral .showcase__label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mm-primary);
    margin-bottom: 0.5rem;
}

body.service-neutral .showcase__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--mm-text);
    margin-bottom: 0.75rem;
}

body.service-neutral .showcase__subtitle {
    font-size: 1.125rem;
    color: var(--mm-text-light);
    max-width: 600px;
    margin: 0 auto;
}

body.service-neutral .showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

body.service-neutral .showcase__block {
    display: block;
    text-decoration: none;
    border-radius: var(--mm-border-radius-lg, 1rem);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

body.service-neutral .showcase__block-inner {
    position: relative;
    padding: 3rem 2rem;
    border-radius: inherit;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.4s ease;
}

body.service-neutral .showcase__block:hover .showcase__block-inner {
    box-shadow: var(--mm-shadow-lg);
}

/* Shine effect on hover */
body.service-neutral .showcase__block-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

body.service-neutral .showcase__block:hover .showcase__block-shine {
    transform: translateX(100%);
}

/* Garden block */
body.service-neutral .showcase__block--garden .showcase__block-inner {
    background: linear-gradient(135deg, #D8F3DC 0%, #B7E4C7 100%);
    border: 2px solid #2D6A4F;
    color: #1B4332;
}

/* Valet block */
body.service-neutral .showcase__block--valet .showcase__block-inner {
    background: linear-gradient(135deg, #E8F4FD 0%, #BEDAF5 100%);
    border: 2px solid #2563A8;
    color: #1A3A5C;
}

body.service-neutral .showcase__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.service-neutral .showcase__block:hover .showcase__icon {
    transform: scale(1.1) translateY(-2px);
}

body.service-neutral .showcase__block--garden .showcase__icon {
    background: rgba(45, 106, 79, 0.15);
}

body.service-neutral .showcase__block--valet .showcase__icon {
    background: rgba(37, 99, 168, 0.15);
}

body.service-neutral .showcase__block-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

body.service-neutral .showcase__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

body.service-neutral .showcase__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: gap 0.3s ease;
}

body.service-neutral .showcase__block:hover .showcase__cta {
    gap: 0.75rem;
}

/* =====================================================================
   Footer — Service Links
   ===================================================================== */

body.service-neutral .footer__services {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

body.service-neutral .footer__service-link {
    color: var(--mm-text-on-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: opacity 0.3s var(--mm-ease, ease);
}

body.service-neutral .footer__service-link:hover {
    opacity: 0.8;
}

/* =====================================================================
   Responsive — Neutral Hub
   ===================================================================== */

@media (max-width: 767px) {
    body.service-neutral .hub-hero {
        min-height: 85vh;
    }

    body.service-neutral .hub-hero__orb--1 { width: 250px; height: 250px; }
    body.service-neutral .hub-hero__orb--2 { width: 200px; height: 200px; }
    body.service-neutral .hub-hero__orb--3 { display: none; }

    body.service-neutral .hub-hero__lines { display: none; }

    body.service-neutral .hub-hero__video {
        opacity: 0.25;
    }

    body.service-neutral .showcase__grid {
        gap: 1.5rem;
    }

    body.service-neutral .showcase__block-inner {
        padding: 2rem 1.5rem;
    }

    .hub-marquee__item {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}

/* =====================================================================
   Booking Page — Override inline green styles to match neutral palette
   ===================================================================== */

body.service-neutral .mm-service-btn.active {
    background: var(--mm-raw-primary) !important;
    color: #fff !important;
}

body.service-neutral .mm-service-btn:hover {
    background: var(--mm-raw-primary-mist) !important;
    color: var(--mm-raw-primary-deep) !important;
}

body.service-neutral .mm-service-btn {
    border-color: var(--mm-raw-primary) !important;
    color: var(--mm-raw-primary) !important;
}

/* Booking calendar plugin accent */
body.service-neutral .wpbc-timeline,
body.service-neutral [class*="wpbc"] {
    --wpbc_steps_for_timeline_active_color: var(--mm-raw-accent) !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    body.service-neutral .hub-hero__orb,
    body.service-neutral .hub-hero__particle,
    body.service-neutral .hub-hero__lines span,
    body.service-neutral .hub-hero__scroll span::after,
    body.service-neutral .hub-hero__badge,
    body.service-neutral .hub-hero__title-line--1,
    body.service-neutral .hub-hero__title-line--2,
    body.service-neutral .hub-hero__tagline,
    body.service-neutral .hub-hero__cta,
    .hub-marquee__track {
        animation: none !important;
    }

    body.service-neutral .hub-hero__badge,
    body.service-neutral .hub-hero__title-line--1,
    body.service-neutral .hub-hero__title-line--2,
    body.service-neutral .hub-hero__tagline,
    body.service-neutral .hub-hero__cta {
        opacity: 1;
        transform: none;
    }

    body.service-neutral .hub-hero__video {
        display: none;
    }

    body.service-neutral .hub-hero__video-overlay {
        background: linear-gradient(135deg, #3D2B1F, #8B6914);
    }
}
