/* ================================================
   LOCABEE V5 HOMEPAGE STYLES
   Hero, carousels, masonry, browse sections
   Only loaded on the homepage
   ================================================ */

/* ======================================
   HERO SECTION
====================================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-white);
    overflow: visible;
    z-index: 100;
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero__slider .swiper-slide {
    overflow: hidden;
}

.hero__slider-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(0, 40, 44, 0.5) 0%,
            transparent 40%,
            rgba(0, 40, 44, 0.8) 100%);
    pointer-events: none;
}

.hero__fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-ink));
}

/* Hero Navigation - Hidden */
.hero__nav-prev,
.hero__nav-next {
    display: none;
}

/* Hero Pagination - Pill Style */
.hero__pagination {
    bottom: var(--space-8) !important;
}

.hero__pagination .swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.4;
    width: 24px;
    height: 6px;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.hero__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
    width: 32px;
}

/* Hero Text Animation */
.hero__title,
.hero__subtitle {
    transition: opacity 0.2s ease;
}

.hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.hero__text {
    flex-shrink: 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(154, 237, 247, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto var(--space-6);
}

/* Search Bar */
/* Trending Tags */
.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-6);
}

.hero__tag {
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.hero__tag:hover {
    background: rgba(154, 237, 247, 0.2);
    color: var(--color-primary);
}

/* ======================================
   SECTION TRANSITIONS (Gradient Bridge)
====================================== */
.section__aura-bridge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.section__aura-layer {
    position: absolute;
    top: -25px;
    left: -20%;
    width: 140%;
    height: 100%;
    filter: blur(40px);
    opacity: 0.6;
}

.aura-1 {
    background: linear-gradient(to top, var(--color-gray-50) 40%, transparent 100%);
    z-index: 1;
    height: 75px;
}

.aura-2 {
    background: radial-gradient(circle at 50% 100%, var(--color-primary) 0%, rgba(80, 70, 229, 0.3) 50%, transparent 80%);
    z-index: 2;
    height: 125px;
    animation: auroraFlow 25s ease-in-out infinite alternate;
}

.aura-3 {
    background: radial-gradient(circle at 70% 100%, rgba(154, 237, 247, 0.5) 0%, rgba(125, 220, 232, 0.2) 40%, transparent 70%);
    z-index: 3;
    height: 100px;
    opacity: 0.4;
    animation: auroraFlow 35s ease-in-out infinite alternate-reverse;
}

.section__aura-sparkles {
    position: absolute;
    inset: 0;
    z-index: 4;
    background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.1;
    mask-image: linear-gradient(to top, black, transparent);
    animation: twinkleSparkles 10s ease-in-out infinite;
}

@keyframes auroraFlow {
    0% {
        transform: scale(1) translateX(-5%) rotate(0deg);
        filter: blur(40px) hue-rotate(0deg);
    }

    33% {
        transform: scale(1.1) translateX(5%) rotate(2deg);
        filter: blur(30px) hue-rotate(15deg);
    }

    66% {
        transform: scale(1.05) translateX(-2%) rotate(-1deg);
        filter: blur(50px) hue-rotate(-10deg);
    }

    100% {
        transform: scale(1.15) translateX(3%) rotate(0deg);
        filter: blur(40px) hue-rotate(5deg);
    }
}

@keyframes twinkleSparkles {

    0%,
    100% {
        opacity: 0.05;
        transform: translateY(0);
    }

    50% {
        opacity: 0.2;
        transform: translateY(-10px);
    }
}

/* ======================================
   CITIES SECTION
====================================== */
.section--cities {
    position: relative;
    /* Added relative for z-index */
    z-index: 1;
    /* Lower than hero to allow dropdown overlay */
    background: var(--color-gray-50);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.section--cities .container {
    position: relative;
    z-index: 1;
    /* Keep it below hero dropdown */
}

.section--cities .section__header {
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
    text-align: center;
}

.cities-carousel {
    position: relative;
    padding: var(--space-4) var(--space-12);
    margin: 0 calc(-1 * var(--space-4));
    overflow: visible;
}

.cities-carousel .swiper-wrapper {
    display: flex;
    padding: var(--space-4) 0;
    overflow: visible;
}

.cities-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

/* Cities Carousel Navigation */
.cities-prev,
.cities-next {
    color: var(--color-gray-600) !important;
    opacity: 1;
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.cities-prev:hover,
.cities-next:hover {
    background: var(--color-ink);
    color: var(--color-white) !important;
}

.cities-prev::after,
.cities-next::after {
    font-size: 1rem;
}

.cities-prev {
    left: 0;
}

.cities-next {
    right: 0;
}

/* ======================================
   SERVICES CAROUSEL
====================================== */
.services-carousel {
    padding: var(--space-4) var(--space-4) var(--space-12);
    margin: 0 calc(-1 * var(--space-4));
    overflow: visible;
}

.services-carousel .swiper-wrapper {
    overflow: visible;
}

.services-carousel .swiper-slide {
    height: auto;
}

.services-carousel .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-carousel .service-card__body {
    flex: 1;
}

/* Services Pagination - Pill Style */
.services-pagination {
    bottom: 0 !important;
}

.services-pagination .swiper-pagination-bullet {
    background: var(--color-gray-400);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.services-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

/* ======================================
   POPULAR SERVICES SECTION
====================================== */
.section--services-popular {
    background: var(--color-gray-50);
    padding: var(--space-16) 0;
}

/* ======================================
   INSPIRATION MASONRY SECTION
====================================== */
.section--inspiration {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg,
            rgba(154, 237, 247, 0.1) 0%,
            rgba(125, 220, 232, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
}

.inspiration-masonry {
    column-count: 2;
    column-gap: var(--space-4);
}

@media (min-width: 768px) {
    .inspiration-masonry {
        column-count: 4;
        column-gap: var(--space-5);
    }
}

@media (min-width: 1024px) {
    .inspiration-masonry {
        column-count: 5;
        column-gap: var(--space-5);
    }
}

.inspiration-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .inspiration-item {
        margin-bottom: var(--space-5);
    }
}

.inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.inspiration-item__heart {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--color-gray-500);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.inspiration-item:hover .inspiration-item__heart {
    opacity: 1;
    transform: scale(1);
}

.inspiration-item__heart:hover {
    color: #e74c3c;
    background: var(--color-white);
}

.inspiration-item__heart.is-liked {
    color: #e74c3c;
}

.inspiration-item__heart.is-liked i::before {
    content: "\F415";
    /* bi-heart-fill */
}

.inspiration-item__label {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-ink);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.inspiration-item:hover .inspiration-item__label {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
    .inspiration-item--tall {
        grid-row: span 1;
    }

    .inspiration-item--wide {
        grid-column: span 1;
    }
}

/* ======================================
   LOOKBOOK GRID
====================================== */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .lookbook-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 250px;
    }
}

.lookbook-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.lookbook-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 24, 25, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-4);
    color: var(--color-white);
}

.lookbook-item:hover .lookbook-item__overlay {
    opacity: 1;
}

.lookbook-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.lookbook-item--wide {
    grid-column: span 2;
    grid-row: span 1;
}

.lookbook-item--tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* ======================================
   LOYALTY BANNER
====================================== */
.loyalty-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12);
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-ink));
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

@media (min-width: 1024px) {
    .loyalty-banner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.loyalty-banner__title {
    font-size: 2rem;
    margin-bottom: var(--space-4);
}

.loyalty-banner__text {
    color: var(--color-gray-400);
    margin-bottom: var(--space-6);
}

.loyalty-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.loyalty-progress__bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: var(--space-4);
}

.loyalty-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #7DDCE8);
    border-radius: var(--radius-pill);
    transition: width var(--transition-slow);
}

/* ======================================
   BROWSE BY CITY SECTION
====================================== */
.section--browse {
    padding: var(--space-16) 0;
    background: var(--color-gray-50);
}

.browse-city__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.browse-city__tab {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.browse-city__tab:hover {
    border-color: var(--color-gray-400);
    color: var(--color-gray-800);
}

.browse-city__tab.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-white);
}

.browse-city__panel {
    display: none;
}

.browse-city__panel.is-active {
    display: block;
}

/* Accordion (Mobile) */
.browse-city__accordion-trigger {
    display: none;
    width: 100%;
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-ink);
    cursor: pointer;
    text-align: left;
    justify-content: space-between;
    align-items: center;
}

.browse-city__accordion-trigger i {
    transition: transform var(--transition-fast);
}

.browse-city__accordion-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .browse-city__tabs {
        display: none;
    }

    .browse-city__panel {
        display: block;
    }

    .browse-city__accordion-trigger {
        display: flex;
    }

    .browse-city__accordion-content {
        display: none;
        padding: var(--space-4);
        background: var(--color-white);
        border: 1px solid var(--color-gray-200);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-bottom: var(--space-4);
    }

    .browse-city__panel.is-expanded .browse-city__accordion-content {
        display: block;
    }

    .browse-city__panel.is-expanded .browse-city__accordion-trigger {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

/* Cities Grid / Swiper */
.browse-city__cities-grid {
    position: relative;
    padding: 0 var(--space-10);
}

.browse-city__city-column {
    min-width: 200px;
}

.browse-city__city-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: var(--space-4);
}

.browse-city__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-city__links li {
    margin-bottom: var(--space-2);
}

.browse-city__links a {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

.browse-city__links a:hover {
    color: var(--color-ink);
}

/* Browse City Swiper Navigation */
.browse-city-prev,
.browse-city-next {
    color: var(--color-gray-500) !important;
    width: 36px;
    height: 36px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.browse-city-prev:hover,
.browse-city-next:hover {
    background: var(--color-ink);
    color: var(--color-white) !important;
}

.browse-city-prev::after,
.browse-city-next::after {
    font-size: 0.875rem;
}

.browse-city-prev {
    left: 0;
}

.browse-city-next {
    right: 0;
}

/* ======================================
   BLOG SECTION
====================================== */
.section--blogs {
    background: var(--color-gray-50);
    padding: var(--space-16) 0;
}

.blog-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-grid--small .blog-card {
    grid-row: span 1;
}

.blog-grid--small .blog-card__image {
    aspect-ratio: 16/9;
}

/* ======================================
   MORPHING GRADIENT BACKGROUND
   (When no hero creatives exist)
   Inspired by juma.ai and fresha.com
   Soft, light, abstract animated design
====================================== */

/* Extended morphing zone - absolute positioning with limited height */
.morph-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vh + 800px);
    /* Hero + Cities + Popular Services */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* Slightly darker, warmer background */
    background: linear-gradient(180deg, #e8f4f3 0%, #f0f6f5 50%, #f8fafa 100%);
    /* Fade to transparent at bottom */
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.morph-rotator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50vh;
    animation: auroraSwirl 70s linear infinite;
    pointer-events: none;
}

@keyframes auroraSwirl {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Soft abstract gradient blobs - slightly more visible */
.morph-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    will-change: transform;
}

/* Cyan blob - top left - slightly more saturated */
.morph-blob--1 {
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(120, 220, 235, 0.7) 0%, rgba(154, 237, 247, 0.3) 50%, transparent 70%);
    animation: morphFloat1 22s ease-in-out infinite;
}

/* Soft pink/magenta blob - top right - slightly stronger */
.morph-blob--2 {
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    top: 5%;
    right: -10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 70%);
    animation: morphFloat2 26s ease-in-out infinite;
}

/* Light purple blob - center - slightly stronger */
.morph-blob--3 {
    width: 55vw;
    height: 55vw;
    max-width: 750px;
    max-height: 750px;
    top: 20%;
    left: 30%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.12) 50%, transparent 70%);
    animation: morphFloat3 30s ease-in-out infinite;
}

/* Teal accent blob - bottom left - slightly stronger */
.morph-blob--4 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    top: 45%;
    left: -5%;
    background: radial-gradient(circle, rgba(100, 200, 215, 0.5) 0%, rgba(125, 220, 232, 0.15) 50%, transparent 70%);
    animation: morphFloat4 34s ease-in-out infinite;
}

/* Soft cyan blob - bottom right - slightly stronger */
.morph-blob--5 {
    width: 35vw;
    height: 35vw;
    max-width: 450px;
    max-height: 450px;
    top: 55%;
    right: 5%;
    background: radial-gradient(circle, rgba(120, 220, 235, 0.45) 0%, rgba(154, 237, 247, 0.15) 50%, transparent 70%);
    animation: morphFloat5 38s ease-in-out infinite;
}

/* Organic floating animations */
@keyframes morphFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(8%, 12%) scale(1.05) rotate(15deg);
    }

    50% {
        transform: translate(-5%, 8%) scale(0.95) rotate(-10deg);
    }

    75% {
        transform: translate(10%, -5%) scale(1.08) rotate(5deg);
    }
}

@keyframes morphFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-12%, 15%) scale(1.1) rotate(-15deg);
    }

    66% {
        transform: translate(8%, -8%) scale(0.92) rotate(10deg);
    }
}

@keyframes morphFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    20% {
        transform: translate(15%, -8%) scale(1.15) rotate(10deg);
    }

    40% {
        transform: translate(-8%, 12%) scale(0.88) rotate(-5deg);
    }

    60% {
        transform: translate(5%, 5%) scale(1.08) rotate(15deg);
    }

    80% {
        transform: translate(-12%, -5%) scale(0.95) rotate(-10deg);
    }
}

@keyframes morphFloat4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(18%, 12%) scale(1.2) rotate(-20deg);
    }
}

@keyframes morphFloat5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-10%, -8%) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(12%, 15%) scale(0.9) rotate(-15deg);
    }
}

/* Hero section in morphing mode - transparent to show blobs */
.hero--morphing {
    background: transparent;
    position: relative;
    z-index: 100;
}

.hero--morphing .hero__slider {
    display: none;
}

/* Override hero text colors for light background */
.hero--morphing .hero__content {
    color: var(--color-ink);
}

/* Tagline pill - independently centered with fit-content width */
.hero--morphing .hero__tagline {
    background: rgba(0, 40, 44, 0.08);
    color: var(--color-ink);
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero--morphing .hero__title {
    color: var(--color-ink);
}

.hero--morphing .hero__subtitle {
    color: var(--color-ink-medium);
}

.hero--morphing .hero__tag {
    background: rgba(0, 40, 44, 0.06);
    color: var(--color-ink-medium);
}

.hero--morphing .hero__tag:hover {
    background: rgba(154, 237, 247, 0.3);
    color: var(--color-ink);
}

/* Search Bar overrides in Morphing Mode */
.hero--morphing .search-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 40, 44, 0.1);
    box-shadow: 0 8px 32px rgba(0, 40, 44, 0.08);
}

.hero--morphing .search-bar:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 40, 44, 0.15);
}

.hero--morphing .search-input {
    color: var(--color-ink);
}

.hero--morphing .search-input::placeholder {
    color: var(--color-gray-400);
}

.hero--morphing .search-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ======================================
   HEADER DARK MODE
   (When morphing background is active)
====================================== */
body.morphing-mode .header:not(.is-scrolled) .header__logo {
    color: var(--color-ink);
}

body.morphing-mode .header:not(.is-scrolled) .header__nav a {
    color: var(--color-gray-600);
}

body.morphing-mode .header:not(.is-scrolled) .header__nav a:hover {
    color: var(--color-ink);
}

body.morphing-mode .header:not(.is-scrolled) .btn--ghost {
    color: var(--color-gray-600);
}

body.morphing-mode .header:not(.is-scrolled) .btn--ghost:hover {
    color: var(--color-ink);
}

body.morphing-mode .header:not(.is-scrolled) .header__user-name {
    color: var(--color-ink);
}

body.morphing-mode .header:not(.is-scrolled) .header__user-toggle {
    border-color: rgba(0, 40, 44, 0.1);
    background: rgba(0, 40, 44, 0.05);
}

body.morphing-mode .header:not(.is-scrolled) .header__mobile-toggle {
    color: var(--color-ink);
}

/* Soft bottom border for header in morphing mode */
body.morphing-mode .header:not(.is-scrolled) .header__inner {
    position: relative;
    padding-bottom: var(--space-4);
}

body.morphing-mode .header:not(.is-scrolled) .header__inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(0, 40, 44, 0.1) 5%,
            rgba(0, 40, 44, 0.1) 95%,
            transparent 100%);
}

/* Sections in morphing zone - transparent backgrounds */
.section--morphing-zone {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.section--morphing-zone .container {
    position: relative;
    z-index: 2;
}

/* Hide the aura bridge when in morphing mode */
.section--morphing-zone .section__aura-bridge {
    display: none;
}

/* Fade transition at bottom of morphing zone */
.section--morphing-fade {
    position: relative;
}

.section--morphing-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--color-gray-50) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .morph-blob {
        filter: blur(60px);
        opacity: 0.4;
    }

    .morph-blob--1 {
        width: 80vw;
        height: 80vw;
    }

    .morph-blob--2 {
        width: 70vw;
        height: 70vw;
    }

    .morph-blob--3 {
        width: 90vw;
        height: 90vw;
    }

    .morph-blob--4 {
        width: 60vw;
        height: 60vw;
    }

    .morph-blob--5 {
        width: 50vw;
        height: 50vw;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .morph-blob {
        animation: none;
    }
}